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>
版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。
工作时间:8:00-18:00
客服电话
电子邮件
admin@qq.com
扫码二维码
获取最新动态