加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

SpringBoot不使用默认的parent

(2022-08-20 11:35:35)
分类: springboot

spring boot官方示例中,需要让我们继承一个spring的 spring-boot-starter-parent 这个parent:


  1. org.springframework.boot
  2. spring-boot-starter-parent
  3. 2.0.4.RELEASE

但是在自己的项目里,有时已经存在parent了,所以可以采取如下变通方法:


  1. org.springframework.boot
  2. spring-boot-dependencies
  3. 2.0.4.RELEASE
  4. pom
  5. import

参考:
Spring Boot官方文档中的 13.2.2 Using Spring Boot without the Parent POM。
(https://docs.spring.io/spring-boot/docs/2.0.4.RELEASE/reference/htmlsingle/ )

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有