spring-boot-devtools

Spring Boot triggers full restart instead of reload on changes over static files

我是研究僧i 提交于 2019-12-02 08:27:05
问题 In my Spring Boot project I have the following structure: - src - main - java - resources - static - css - js - img - webapp - WEB-INF - views As per the documentation, resources inside static/ should trigger a reload, but instead whenever I save a file inside css/ or js/ a full restart is triggered. I'm using Spring Boot 2.0.4 including spring-boot-devtools (default configuration) and spring-boot-starter-security with Eclipse Oxygen and Tomcat 8.5 Packaging type is war since I have to deploy

Spring Boot triggers full restart instead of reload on changes over static files

故事扮演 提交于 2019-12-02 07:57:57
In my Spring Boot project I have the following structure: - src - main - java - resources - static - css - js - img - webapp - WEB-INF - views As per the documentation , resources inside static/ should trigger a reload, but instead whenever I save a file inside css/ or js/ a full restart is triggered. I'm using Spring Boot 2.0.4 including spring-boot-devtools (default configuration) and spring-boot-starter-security with Eclipse Oxygen and Tomcat 8.5 Packaging type is war since I have to deploy to a shared container and views are created using jsp . Any help will be greatly appreciated.

Spring Devtools triggers restart when changing excluded files

拥有回忆 提交于 2019-12-02 06:37:46
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