1.application.yml
添加cache-period: 0
resources: # 指定靜態資源的路徑
static-locations: classpath:/static/,classpath:/views/
cache-period: 0
2.勾選project->build automatically
3.去掉spring-boot-devtools插件!
1.application.yml
添加cache-period: 0
resources: # 指定靜態資源的路徑
static-locations: classpath:/static/,classpath:/views/
cache-period: 0
2.勾選project->build automatically
3.去掉spring-boot-devtools插件!
引入依賴 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-start