遇到这种情况,检查一下是否有maven包没有导,我这里是缺少了基础包:
spring-boot-starter-web
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
遇到这种情况,检查一下是否有maven包没有导,我这里是缺少了基础包:
spring-boot-starter-web
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>