I have a Spring Boot Web Project that uses Joinfaces
and Primefaces
. The application extends from SpringBootServletInitializer
and also generates a war
file.
For development I start my Project (in Eclipse) using RunAs -> Spring Boot App
. I've added the spring-boot-devtools
dependency as described in the Developer Tools Docu. Everything seems to work, except that changes in a xhtml
file also triggers the restart.
I've added the spring.devtools.restart.additional-exclude
property in my application.yml
to exclude also webapp/**
. But this seems to have no effect, because a change still triggers the restart.
spring:
devtools:
restart:
additional-exclude: webapp/**
My Project structure looks like:
src
-main
-java
-resources
-webapp
- *.xhtml
But maybe I do not understand how to use the DevTools
correct - Starting the application as Spring Boot App
might not be the correct usage? Because if I place a file e.g. foo.txt
under src/main/resources
and update its content the application is also restarted (using the DevTools
defaults (which should exclude /resources)).
Using:
- Eclipse Oxygen.3a Release (4.7.3a)
- Joinfaces 3.2.1 -> Spring Boot 2.0.2.RELEASE