org.springframework.cloud.context.config.annotation不存在|| Spring 2.0.3发布

时间:2019-03-18 15:56:02

标签: spring spring-boot

我正在尝试将Spring Boot应用程序从1.5.9.RELEASE升级到2.0.3.RELEASE版本。我在进行mvn构建时遇到问题。

> ERROR: package org.springframework.cloud.context.config.annotation
> does not exist [ERROR]  cannot find symbol symbol: class RefreshScope

有人可以帮我解决这个问题吗?

行家

    <parent>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-parent</artifactId>
            <version>2.0.3.RELEASE</version>
            <relativePath /> <!-- lookup parent from repository -->
    </parent>

        <properties>
            <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
            <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
            <java.version>1.8</java.version>
            <avro.version>1.8.2</avro.version>
            <spring-cloud.version>Finchley.SR3</spring-cloud.version>
            <commons-lang.version>2.6</commons-lang.version>
        </properties>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dependencies</artifactId>
                <version>${spring-cloud.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

0 个答案:

没有答案