pom中这个是哪来的
GrandKai opened this issue · 1 comments
GrandKai commented
org.springframework.boot
spring-boot-starter-parent
1.3.5.RELEASE
keepmoving1573 commented
这是添加spring-boot的父级依赖,这样我的项目里,就可以不指定spring-boot版本号,由父级pom传递。你可以看下spring官方提供的spring-boot例子项目,都是这种写法。
我的这几个都没指定版本号,都有父pom决定。
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-freemarker</artifactId>
</dependency>