小编Ham*_*ish的帖子

Netbeans 8 不会重新加载静态 Thymeleaf 文件

我正在通过 Maven 使用 Spring Boot 和 Thymeleaf。当我进行更改时,我似乎无法让 Netbeans 自动重新部署我的任何 Thymeleaf 模板文件。为了查看更改,我需要进行完整的清理/构建/运行。这需要太长时间。

模板在src/main/resources/templates. 我在 src/main/resources/ 中有一个 application.properties 文件,带有spring.thymeleaf.cache=falsespring.template.cache=false

我在项目设置中打开了“保存时编译”、“保存时复制资源”和“保存时部署”。

我的 Maven 构建生成了一个战争文件,Netbeans 将其部署到 Tomcat,我正在使用注释@EnableAutoConfiguration

Netbeans热部署对 Java 类的更改,但不会对 src/main/resources/ 中的任何静态文件进行热部署。

使用中的软件:

  • Mac OS X 10.9.4
  • 爪哇 1.8
  • Netbeans 8.0.1
  • 雄猫 8.0.12
  • 弹簧靴 1.1.7
  • Thymeleaf 2.1.3(通过 Spring Boot)

非常感谢任何指导。

spring netbeans maven thymeleaf spring-boot

4
推荐指数
1
解决办法
3035
查看次数

标签 统计

maven ×1

netbeans ×1

spring ×1

spring-boot ×1

thymeleaf ×1