关于spring boot的pom依赖配置方式
2018-04-01 01:56
615 查看
根据阅读英文文档,spring boot的依赖有两种配置方式:第一种:<parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>2.0.0.RELEASE</version></parent>
<dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> </dependencies>第二种:<dependencyManagement><dependencies><dependency><!-- Import dependency management from Spring Boot --><groupId>org.springframework.boot</groupId><artifactId>spring-boot-dependencies</artifactId><version>2.0.0.RELEASE</version><type>pom</type><scope>import</scope></dependency></dependencies></dependencyManagement>希望大家能够分清,不要将两种方式弄混,这两种方式其他不同的设置可到官网文档中去看
相关文章推荐
- Spring Boot教程(二)--- 推荐的基础 POM 文件和自动配置
- spring boot项目依赖另外一个spring boot项目打包失败的解决方式
- Spring-boot中读取config配置文件的两种方式
- SpringBoot属性配置实战(多种方式)
- Spring 配置文件中关于事务控制的3种方式
- Spring的三种自身配置数据源及依赖第三方包方式
- Spring-----7、bean实例的创建方式及依赖配置
- spring boot 集成quartz 2.0 实现前端动态配置(获取spring上下文)的两种方式,启动数据库中已开启定时任务
- Spring-boot中读取config配置文件的两种方式
- 一篇关于spring ioc 依赖注入3种方式的文章引用
- spring 配置bean的方法及依赖注入发方式
- Springboot项目打成Jar包Pom配置
- springboot读取配置文件的三种方式
- spring boot使用sharding jdbc的配置方式
- ajax跨域CORS方式JAVA Spring Boot配置
- pom文件中使用指定路径的方式配置jar包依赖
- 关于给springboot添加定时器的两种方式
- Springboot打jar包分离lib配置文件正确方式
- 实习总结(十)---Spring的下载/安装/优点/依赖注入方式/自动配置
- 关于springboot 生成的jar 文件在编译的时候出现没有主配置文件