![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Thymeleaf
不放弃每一天
这个作者很懒,什么都没留下…
展开
-
thymeleafz注意事项
提交表单要有input的名字尽量不要使用 @Autowired方式注解@AutowiredDepartmentDao departmentDao;如果这样设置将会在提交表单的时候必须以这种格式来提交spring.mvc.date-format=yyyy-MM-ddspringboot会严格按要求的配置来执行,一定看清配置项...原创 2020-04-30 16:55:23 · 105 阅读 · 0 评论 -
thymeleaf中不能获取到css文件
有效: href="…/…/static/css/bootstrap.min.css" th:href="@{~/css/bootstrap.min.css}" rel=“stylesheet” type=“text/css”无效:link href="…/static/css/bootstrap.min.css" rel=“stylesheet”有效:link href="…/…/stati...原创 2020-04-29 19:42:56 · 793 阅读 · 0 评论 -
Java springboot 从数据库中传到前端 thymeleaf中不能获取类属性,报错Cannot resolve '*****'
对于Thyme leaf不能获取到后端数据库中的类属性<tr th:each="emp:${emps}"><td th:text="${emp.getLastname()()}"></td>--><td th:text="${emp.getGender()()}"></td>--><td th:text="$...原创 2020-04-29 19:29:07 · 3342 阅读 · 0 评论