测试SpringBoot的Security模块,运行用thymeleaf组成的前端页面时,在控制器调试正确的情况下,控制台出现
情况,网页报500
上网查了一下报错原因,原来是用maven直接导入的thymeleaf依赖与springboot容器不兼容
改成以下的就能运行了
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>