出现There was an unexpected error (type=Internal Server Error, status=500).
程序员文章站
2022-05-29 17:14:07
...
出现There was an unexpected error (type=Internal Server Error, status=500).
在运行springboot中发现这种错误。
There was an unexpected error (type=Internal Server Error, status=500).
Authentication failed for token submission [org.apache.shiro.authc.UsernamePasswordToken - null, rememberMe=false]. Possible unexpected error? (Typical or expected login exceptions should extend from AuthenticationException).
搞得我重新写了一遍,发现是Maven导致的,Thymeleaf依赖添加错了
可能是我写着写着,@{}没用正确,就从网上拿了个,拿错了,
原依赖是这个
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
结果我拿了这个
<!-- https://mvnrepository.com/artifact/org.thymeleaf/thymeleaf -->
<dependency>
<groupId>org.thymeleaf</groupId>
<artifactId>thymeleaf</artifactId>
<version>3.0.12.RELEASE</version>
</dependency>
失策啊失策。
上一篇: springboot自定义启动类
推荐阅读
-
解决SpringBoot下delete请求不可用There was an unexpected error (type=Method Not Allowed, status=405).
-
Idea-SpringBoot:There was an unexpected error (type=Not Found, status=404). /WEB-INF/page//XX.jsp
-
An unexpected error prevented the server from fulfilling your request. (HTTP 500)
-
php+redis在实际项目中HTTP 500: Internal Server Error故障排除
-
php+redis在实际项目中HTTP 500: Internal Server Error故障排除
-
destoon安装出现Internal Server Error的解决方法_php实例
-
destoon安装出现Internal Server Error的解决方法_PHP教程
-
destoon安装出现Internal Server Error的解决方法
-
Error -26612: HTTP Status-Code=500 (Internal Server Error) 博客分类: 01-loadrunner场景部分经验总结
-
Error -26612: HTTP Status-Code=500 (Internal Server Error) 博客分类: 01-loadrunner场景部分经验总结