![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SpringBoot
Mazyg01
这个作者很懒,什么都没留下…
展开
-
SpringBoot引入thymeleaf模板引擎注意问题
如果勾选了数据库模块,却没有配置数据库可能会出现以下问题 Cannot determine embedded database driver class for database type NONE 原因是:springboot启动时会自动注入数据源和配置jpa 解决办法:在@SpringBootApplication中排除其注入 @SpringBootApplication(exclude={D...原创 2020-03-29 22:58:50 · 363 阅读 · 0 评论 -
thymeleaf语法
在html页面引入thymeleaf语法支持 xmlns:th="http://www.thymeleaf.org th:if 相等于 c:if th:each 相当于 c:each th:text 获取文本,转义特殊字符 th:utext 获取文档,不转义特殊字符 <div th:utext="${test1}"></div> <div th:t...原创 2020-04-17 22:12:09 · 66 阅读 · 0 评论 -
thymeleaf抽取页面公共元素
thymeleaf抽取页面公共元素 抽取原创 2020-07-10 15:10:30 · 118 阅读 · 0 评论