<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.weebing.springboot</groupId>
<artifactId>springboot-starter</artifactId>
<version>1.0.0</version>
<name>weebing-web-starter</name>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.4.2.RELEASE</version>
</parent>
<dependencies>
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-web -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
</dependencies>
<properties>
<java.version>1.8</java.version>
</properties>
</project>
注意:<parent>标签指明了该spring boot项目需要继承哪个公共spring boot,<dependency>中的依赖包最好不要标明具体版本(这也算一个技巧吧),由maven自行下载相应版本。这样做不会出现因版本问题而出现的问题。我遇到的一个问题是:代码运行正确,但url映射不成功。