zoukankan      html  css  js  c++  java
  • SpringCloud Eurkea注册服务 is not eligible for getting processed by all BeanPostProcessors

    Bean ‘org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration’ of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$845a2dee] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    

    可能是SpringCloud 和Spring Boot版本之间的问题。

    查询对应的小版本,更改pom

    <dependencyManagement>
            <dependencies>
                <!-- 导入 SpringCloud 需要使用的依赖信息 -->
                <dependency>
                    <groupId>org.springframework.cloud</groupId>
                    <artifactId>spring-cloud-dependencies</artifactId>
                    <version>Greenwich.SR5</version>
                    <type>pom</type>
                    <!-- import 依赖范围表示将 spring-cloud-dependencies 包中的依赖信息导入 -->
                    <scope>import</scope>
                </dependency>
                <!-- 导入 SpringBoot 需要使用的依赖信息 -->
                <dependency>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-dependencies</artifactId>
                    <version>2.1.3.RELEASE</version>
                    <type>pom</type>
                    <scope>import</scope>
                </dependency>
            </dependencies>
        </dependencyManagement>
        <!-- 注意: 这里必须要添加, 否者各种依赖有问题 -->
        <repositories>
            <repository>
                <id>spring-milestones</id>
                <name>Spring Milestones</name>
                <url>https://repo.spring.io/libs-milestone</url>
                <snapshots>
                    <enabled>false</enabled>
                </snapshots>
            </repository>
        </repositories>
    
  • 相关阅读:
    OpenStack trove原理及配置实践
    [转]在首席架构师手里,应用架构如此设计
    Servlet入门(一),超级详细!!!看完就会!!!!
    Redis入门
    Linux笔记02—Linux进阶应用
    Linux笔记01—linux基础入门
    Linux笔记00—计算机概论
    Linux上安装jdk
    SpringBoot入门
    排查问题的五个步骤
  • 原文地址:https://www.cnblogs.com/land-fill/p/13430895.html
Copyright © 2011-2022 走看看