-
Deprecated configuration property 'spring.thymeleaf.content-type'
spring.thymeleaf.content-type=text/html已过时,
改成:
spring.thymeleaf.servlet.content-type=text/html -
springboot集成themeleaf报Namespace 'th' is not bound
在html标签中加入命名空间<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
- 每一次我们对页面的修改都不能得到及时的反应,我们需要不断的重启服务器以看到效果,这在实际开发过程中是十分糟糕的表现,我们需要做一些修改,让Thymeleaf页面能够实时的刷新而不需要重启服务器。摘自:https://www.cnblogs.com/wmyskxz/p/10208648.html file→setting→Build...→compiler→√Build Project automatically 点击“OK”, 然后ctr+shift+alt+/ ,跳出Maintenance,选择Registry,√compiler...running,
配置application.properties
springboot集成themeleaf问题
最新推荐文章于 2023-05-16 10:23:54 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)