SpringBoot要集成SpringMVC进行Controller的开发,所以项目要导入web的启动依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
spring-boot-starter-web
中 包含了
<artifactId>spring-boot-starter</artifactId>
<artifactId>spring-boot-starter-json</artifactId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<artifactId>spring-web</artifactId>
<artifactId>spring-webmvc</artifactId>
版权声明:本文为claroja原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。