控制台如下:
这是因为pom.xml缺少web包,加入就可以啦!
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
我们看下spring-boot-starter-web里面
没错啦,就是缺少tomcat包!
控制台如下:
这是因为pom.xml缺少web包,加入就可以啦!
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
我们看下spring-boot-starter-web里面
没错啦,就是缺少tomcat包!