出现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>
失策啊失策。