I want to create a program in Java/Spring that listens always a directory. If a particular called for example "example.txt" is created in this directory then the program reads it and do some stuff and then continues listening. If this txt file is not created then nothing happens and it continues listening.
Any idea about how can I create this listener part?
Thank you so much for your help