我正在通过 Maven 使用 Spring Boot 和 Thymeleaf。当我进行更改时,我似乎无法让 Netbeans 自动重新部署我的任何 Thymeleaf 模板文件。为了查看更改,我需要进行完整的清理/构建/运行。这需要太长时间。
模板在src/main/resources/templates. 我在 src/main/resources/ 中有一个 application.properties 文件,带有spring.thymeleaf.cache=false和spring.template.cache=false。
我在项目设置中打开了“保存时编译”、“保存时复制资源”和“保存时部署”。
我的 Maven 构建生成了一个战争文件,Netbeans 将其部署到 Tomcat,我正在使用注释@EnableAutoConfiguration。
Netbeans会热部署对 Java 类的更改,但不会对 src/main/resources/ 中的任何静态文件进行热部署。
使用中的软件:
非常感谢任何指导。