ERROR 7612 --- [nio-8080-exec-4] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for se

created at 01-30-2022 views: 5

problem

When testing SpringSecurity, it was found that the page in controller could not be recognized. The page was placed under templates. After starting springboot, it was found that the request could not locate the specified page, and a 500 error was reported.

solution

I found that I forgot to introduce the thymeleaf module dependency when I created the project

<!--thymeleaf-->
<dependency>
     <groupId>org.springframework.boot</groupId>
     <artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
created at:01-30-2022
edited at: 06-02-2022: