首页 > Spring boot 在pom.xml有个错误

Spring boot 在pom.xml有个错误


因为这个是SNAPSHOT,maven的中央仓库没有,所以你要加上spring的maven仓库

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>1.4.1.BUILD-SNAPSHOT</version>
</parent>

<repositories>
    <repository>
        <id>spring-snapshots</id>
        <name>Spring Snapshots</name>
        <url>https://repo.spring.io/libs-snapshot</url>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
    </repository>
</repositories>
【热门文章】
【热门文章】