欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

出现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).
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>

失策啊失策。

相关标签: spring boot maven