赞
踩
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>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。