https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#howto-hotswapping
Thymeleaf Templates
If you use Thymeleaf, set spring.thymeleaf.cache to false. See ThymeleafAutoConfiguration for other Thymeleaf customization options.
FreeMarker Templates
If you use FreeMarker, set spring.freemarker.cache to false. See FreeMarkerAutoConfiguration for other FreeMarker customization options.
Groovy Templates
If you use Groovy templates, set spring.groovy.template.cache to false. See GroovyTemplateAutoConfiguration for other Groovy customization options.
DEMO:
https://github.com/imrexhuang/Spring-Boot-Security-Thymeleaf-Demo
沒有留言:
張貼留言