其他分享
首页 > 其他分享> > 3.springboot和springcloud alibaba版本问题

3.springboot和springcloud alibaba版本问题

作者:互联网

启动项目报错

Caused by: java.lang.ClassNotFoundException: ...boot.context.properties.ConfigurationPropertiesBean

 

解决办法:我的springboot用的

 

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

 

 

  对应springcloud版本:

<properties>
        <java.version>1.8</java.version>
        <spring-cloud.version>Greenwich.SR3</spring-cloud.version>
    </properties>

 

springcloud alibaba依赖版本

<dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.alibaba.cloud</groupId>
                <artifactId>spring-cloud-alibaba-dependencies</artifactId>
                <version>2.1.0.RELEASE</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

 

标签:springboot,spring,boot,alibaba,springcloud,2.1
来源: https://www.cnblogs.com/upupup-999/p/16613884.html