原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>

最新文章

  1. vuex
  2. 锤子手机 Smartisan M1L 咖啡金 真皮背面 高配版 5.7
  3. Java总结篇系列:Java String
  4. 一种构造WEB服务器端recv和send接口阻塞现象的方法
  5. Android应用程序模拟手机按键
  6. mac 安装memcached服务
  7. 类模板的困扰 LNK2019 (转)
  8. bzoj1231: [Usaco2008 Nov]mixup2 混乱的奶牛
  9. 报错:Cannot insert explicit value for identity column in table &#39;t&#39; when identity_insert is set to OFF
  10. Linux下python升级
  11. UltraEdit-32文本编辑器软件 23.20.0.28 中文版
  12. java操作DBF的使用
  13. 在react.js上使用antd-design没有样式
  14. nova创建虚拟机源码系列分析之二 wsgi模型
  15. mysql查看实时连接数
  16. C# 实现身份验证之WEB Service篇
  17. svn 目录
  18. latex中使用listings显示代码
  19. Linux 下wifi 驱动开发(四)—— USB接口WiFi驱动浅析
  20. C++指针一

热门文章

  1. 【学习笔记】AspectJ笔记
  2. [原] eclipse 无法找到 run as junit
  3. consul服务发现和配置共享的软件,
  4. py-faster-rcnn代码阅读3-roidb.py
  5. Web安全测试-WebScarab
  6. Coins in a Line I &amp; II
  7. Cling项目demo实现Android+DLNA实现
  8. NodeJS学习:环境变量
  9. Java编程的逻辑 (65) - 线程的基本概念
  10. hdu 5443 (2015长春网赛G题 求区间最值)