search

Home  >  Q&A  >  body text

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

PHP中文网PHP中文网2809 days ago274

reply all(1)I'll reply

  • 阿神

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

    Because this is SNAPSHOT, maven’s central warehouse does not have it, so you have to add spring’s maven warehouse

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

    reply
    0
  • Cancelreply