您的位置:首页 > 编程语言 > Java开发

spring boot 开发,贴一下maven配置文件

2016-11-18 18:10 465 查看
 <!-- 基础父包 -->

  <parent>

  <groupId>org.springframework.boot</groupId>

  <artifactId>spring-boot-starter-parent</artifactId>

  <version>1.4.1.RELEASE</version>                //有了父包,在dependencies  配置其他包版本都省了
  </parent>

dependencies  下需要的是

<!-- spring-boot的web启动的jar包 -->

   <dependency>

   <groupId>org.springframework.boot</groupId>

   <artifactId>spring-boot-starter-web</artifactId>

   </dependency>

最后需要这个

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  spring java