springboot中的小技巧

1.Thymeleaf 在时使用Thymeleaf的时候不用设置html标签:在默认的Thymeleaf的页面中,对于.html的要求比较严格,少写或者多写标签,都会被报错,而在springboot 2.x版本中,只须要设置Thymeleaf的模板就能够解决这些问题:在application.propertie配置入下参数html spring.thymeleaf.cache=false spri
相关文章
相关标签/搜索