开发者社区 问答 正文

springboot 2.1.7 引入thymeleaf依赖 启动就报错

image.png

springboot 2.1.7 引入thymeleaf依赖 启动就报错

换成2.1.6可以正常启动

本问题来自阿里云开发者社区的【11大垂直技术领域开发者社群】。https://developer.aliyun.com/article/706511 点击链接欢迎加入感兴趣的技术领域群。

展开
收起
初商 2019-08-16 21:10:28 754 分享 版权
1 条回答
写回答
取消 提交回答
  • 首先在后台打印一下数据,确认不是后台的错误,前端页面的错误一般是由于私有属性造成的,解决办法就是调用get方法,如: <tr th:each="user:${emps}"> <th scope="row" th:text="${user.getId()}"></th> <td th:text="${user.getName()}"></td> <td th:text="${user.getEmail()}"></td> </tr> image.png

    2019-09-23 19:29:45
    赞同 展开评论