我最近开始从事Spring Boot项目的工作。我的项目结构如下图所示。
问题:当我更改资源/静态文件夹下的任何js / css文件时,IDE无法执行热交换。我正在使用 spring-boot-devtools ,更改模板后Thymeleaf资源会正确更新,而无需重新启动应用程序。
Spring Boot版本:2.0.3
IDE环境:
IDEA 2018.1.3 (Community Edition)
Build #IC-181.4892.42, built on May 8, 2018
JRE: 1.8.0_152-release-1136-b38 x86
JVM: OpenJDK Server VM by JetBrains s.r.o
Windows 7 6.1
application.properties中的Thymeleaf配置
spring.thymeleaf.cache=false
spring.thymeleaf.mode=LEGACYHTML5
spring.thymeleaf.templates_root=src/main/resources/templates/