Springboot项目修改静态资源后不需要重启

1.application.yml添加cache-period: 0

resources: # 指定静态资源的路径
        static-locations: classpath:/static/,classpath:/views/
        cache-period: 0

2.勾选project->build automatically
3.去掉spring-boot-devtools插件!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章