在pom.xml中
<parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>2.0.1.RELEASE</version></parent>
spring-boot-starter-parent
是所有springboot启动以来的父类,所有的springboot都必须继承这个
<dependencies><!--web功能的起步依赖--><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId></dependency><!--热部署配置--><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-devtools</artifactId></dependency></dependencies>
启用热部署参考 https://www.jianshu.com/p/f658fed35786
热部署作用:热部署,就是在应用正在运行的时候升级软件,却不需要重新启动应用。
<!--web功能的起步依赖--><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId></dependency>
这一部分中,里面就包含了springmvc的依赖
<dependency><groupId>org.springframework</groupId><artifactId>spring-webmvc</artifactId><version>5.0.5.RELEASE</version><scope>compile</scope></dependency>
还有下面的依赖
<dependencies><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter</artifactId><version>2.0.1.RELEASE</version><scope>compile</scope></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-json</artifactId><version>2.0.1.RELEASE</version><scope>compile</scope></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-tomcat</artifactId><version>2.0.1.RELEASE</version><scope>compile</scope></dependency><dependency><groupId>org.hibernate.validator</groupId><artifactId>hibernate-validator</artifactId><version>6.0.9.Final</version><scope>compile</scope></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-web</artifactId><version>5.0.5.RELEASE</version><scope>compile</scope></dependency>
里面主要有spring-web、spring-boot-starter-tomcat、spring-boot-starter-json几个比较重要的springweb的依赖,这就是为什么spring boot中自带有tomcat的缘故了,跟本地的tomcat无关。
下一个:动物医院布局分析(动物医院面积)
热门文章
- 动物疫苗上市公司排名前十(动物疫苗上市企业)
- 动物免疫接种的注意事项有哪些? 动物免疫接种的注意事项有哪些呢
- 「12月20日」最高速度21.7M/S,2024年SSR/Clash/V2ray/Shadowrocket每天更新免费节点订阅链接
- Vue项目中 端口号、项目自动运行和`eslint`关闭 配置
- 「12月15日」最高速度22.2M/S,2024年SSR/V2ray/Shadowrocket/Clash每天更新免费节点订阅链接
- 「1月27日」最高速度19.3M/S,2025年SSR/Clash/Shadowrocket/V2ray每天更新免费节点订阅地址分享
- 猫咪3针疫苗一共多少元钱啊图片(猫咪三针疫苗叫什么名字)
- 宠物领养协议书怎么生效(宠物领养协议免费下载)
- 国内十大宠物粮食品牌排行榜前十名有哪些(国内宠物粮食十大厂家)
- 开宠物店利润大吗知乎文章推荐(开宠物店利润高吗)