解决WebMvcConfigurer下的addViewControllers无法找到制定页面



这种都已经配置了拦截跳转,但无效的原因是,没有加载thymeleaf依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>



这种都已经配置了拦截跳转,但无效的原因是,没有加载thymeleaf依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>