前言 在SpringBoot设置跳转页面时报了个错:Cannot resolve MVC View "index" 解决 在pom.xml文件中缺少依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> 结果正常跳转