spring-boot 使用thymleaf修改页面不重启生效

开发环境用如下配置即可
# Templates reloading during development
spring.thymeleaf.prefix=file:src/main/resources/templates/
spring.thymeleaf.cache=false


# Static resources reloading during development
spring.resources.static-locations=file:src/main/resources/static/
spring.resources.cache-period=0
阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页