代码之家  ›  专栏  ›  技术社区  ›  Tonyukuk

的不兼容版本阿帕奇骆驼与弹簧。靴子版本2.0

  •  0
  • Tonyukuk  · 技术社区  · 6 年前

    当我使用新版本的阿帕奇骆驼比如2.21.0,我遇到了RelaxedPropertyResolved错误。我读了论坛,我被告知降低版本的春季开机,我不能。我必须使用sprint.boot.version版本2.0.0新版本apache.camel.version版本不修改我的java代码?

    你认为有可能吗?

    这些是我对你的依赖camel.version版本以及spring.boot.version版本. 如果你还需要什么,请告诉我。

             <dependency>
                <groupId>org.apache.camel</groupId>
                <artifactId>camel-bom</artifactId>
                <version>${camel.version}</version>
                <type>pom</type>
                <scope>import</scope>
                <version>2.21.0
             </dependency>
             <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-parent</artifactId>
                <version>${spring.boot.version}</version>
                <type>pom</type>
                <scope>import</scope>
                <version>2.21.0</version>
            </dependency>
    

    at com.project.eventrouter.Application.main(Application.java:26)
    Caused by: java.lang.IllegalStateException: Could not evaluate condition on 
    org.apache.camel.spring.boot.security.CamelSSLAutoConfiguration due to 
    org/springframework/boot/bind/RelaxedPropertyResolver not found. Make sure 
    your own configuration does not rely on that class. This can also happen if 
    you are @ComponentScanning a springframework package (e.g. if you put a 
    @ComponentScan in the default package by mistake)
    org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:55)
    at org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:109)
    at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:217)
    at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:606)
    ... 13 common frames omitted
    
    1 回复  |  直到 6 年前
        1
  •  3
  •   Claus Ibsen    6 年前
    • Camel 2.21.x或更高版本是Spring Boot 1.5.x
    • Camel 2.22.x仅适用于Spring Boot 2.0.x