Heim  >  Fragen und Antworten  >  Hauptteil

java - Spring boot 在pom.xml有个错误

PHP中文网PHP中文网2741 Tage vor240

Antworte allen(1)Ich werde antworten

  • 阿神

    阿神2017-04-18 09:54:46

    因为这个是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>

    Antwort
    0
  • StornierenAntwort