spring-boot parent变更为依赖方式
2024-10-13 15:27:54
原parent继承方式
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.1.RELEASE</version>
<relativePath/>
</parent>
依赖方式如下:
增加依赖dependencyManagement
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>1.5.1.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
添加以下插件
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.2</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin> <plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
最新文章
- vuex
- 锤子手机 Smartisan M1L 咖啡金 真皮背面 高配版 5.7
- Java总结篇系列:Java String
- 一种构造WEB服务器端recv和send接口阻塞现象的方法
- Android应用程序模拟手机按键
- mac 安装memcached服务
- 类模板的困扰 LNK2019 (转)
- bzoj1231: [Usaco2008 Nov]mixup2 混乱的奶牛
- 报错:Cannot insert explicit value for identity column in table &#39;t&#39; when identity_insert is set to OFF
- Linux下python升级
- UltraEdit-32文本编辑器软件 23.20.0.28 中文版
- java操作DBF的使用
- 在react.js上使用antd-design没有样式
- nova创建虚拟机源码系列分析之二 wsgi模型
- mysql查看实时连接数
- C# 实现身份验证之WEB Service篇
- svn 目录
- latex中使用listings显示代码
- Linux 下wifi 驱动开发(四)—— USB接口WiFi驱动浅析
- C++指针一