父工程里设置springcloud依赖的时候,没有加上dependencyManagement

正确应为:

<!--添加springcloud依赖-->
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dependencies</artifactId>
                <version>Greenwich.SR1</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>
Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐