thymeleaf There was an unexpected error (type=Internal Server Error, status=500).
程序员文章站
2022-05-29 17:50:35
...
thymeleaf There was an unexpected error (type=Internal Server Error, status=500).
使用thymeleaf依赖,无法访问html文件,解决方法有以下几种可能:
1. 未加载thymeleaf依赖,打开pom.xml,加入依赖:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
2. html文件有问题,无法解析
3. 以上都不是
那可能是各种问题,数据库、页面跳转设置问题,这种情况是后端出现故障
这个时候,打开console,一定能找到ERROR输出,查找原因,比如我这里问题是:
这是由于:
也就是thymeleaf+layui加载页面渲染时出现问题,这个时候需要找到对应的解决方法解决即可。
上一篇: 关于Mybatis的各种配置文件
推荐阅读
-
An internal error occurred during: "Updating status for Tomcat v7.0 Server at localhost..."
-
thymeleaf 404报错:There was anunexpected error (type=Not Found, status=404).
-
spring boot jst 模板报404 There was an unexpected error (type=Not Found, status=404).
-
There was an unexpected error (type=Not Found, status=404)---采用layui出现的问题
-
idea:springboot整合jsp出现的错误:There was an unexpected error (type=Not Found, status=404). /WEB-INF/jsp。。
-
(发送post请求报错)There was an unexpected error (type=Forbidden, status=403). Forbidden
-
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
-
Nginx出现500 Internal Server Error 错误的解决方案
-
springboot中unexpected error (type=Not Found, status=404)/WEB-INF/upload.jsp和No message available解决方案
-
nginx提示:500 Internal Server Error错误解决办法