How to monitor folder/directory in spring?
<p>I wan't to write Spring Boot Application in spring which will be monitoring directory in windows, and when I change sub folder or add new one or delete existing one I wanna get information about that.</p>

<p>How can i do that?
I have read this one:
<a href="http://docs.spring.io/spring-integration/reference/html/files.html" rel="noreferrer">http://docs.spring.io/spring-integration/reference/html/files.html</a>
and each result under 'spring file watcher' in google, 
but I can't find solution...</p>

<p>Do you have a good article or example with something like this?
I wan't it to like like this:</p>

<pre><code>@SpringBootApplication
@EnableIntegration
public class SpringApp{

    public static void main(String[] args) {
        SpringApplication.run(SpringApp.class, args);
    }

    @Bean
    public WatchService watcherService() {
        ...//define WatchService here
    }
}
</code></pre>

<p>Regards</p>