Cannot resolve MVC View

在搭建springboot项目时报错:Cannot resolve MVC View "index"

 

 那是因为在pom中缺少依赖

<dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>

结果:

 

 

posted on 2021-02-09 11:14  含光Aries  阅读(6542)  评论(0编辑  收藏  举报