I have a small Spring boot project (from spring-boot-starter). Everything is configured, I want to use spring-Boot-Devtools to automatically restart. When I run my project (mvn spring-boot: run -X) from my git repo working directory, I can see:
maven logs:
DEBUG] Class path for forked: C: \ Users \ Razor \ git \ spring-boot starter \ target \ classes, ........
which is good, the way looks good. and then application logs:
2016-09-21 23: 47: 59.568 DEBUG 13528 --- [restartedMain] .blClasspathLoggingApplicationListener: the application is launched using classpath: []
is classpath empty? there is probably a problem that Devtools does not want to automatically restart my application. But why?
When I copy the project folder (no other changes !!!) to another location, the reboot works!
Maven (mvn spring-boot: run -X):
[DEBUG] The class class for the forked process: C: \ Java \ workspace_rentit \ spring-boot-starter2 \ target \ classes, .....
and later:
2016-09-21 23: 40: 34.224 DEBUG 4060 --- [restartedMain] .blClasspathLoggingApplicationListener: the application is launched using classpath [file: / C: / Java / workspace_rentit / spring-boot-starter2 / target / classes /]
Why are there differences? What's wrong? in the second case, the reboot works.
spring spring-boot maven reload spring-boot-devtools
razor
source share