Spring Boot-IntellIj:热插拔不适用于资源/静态文件夹

时间:2018-07-18 06:39:41

标签: spring spring-boot intellij-idea hotswap

我最近开始从事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/

My Project Structure

0 个答案:

没有答案