Pre-check

  • [X] I am sure that all the content I provide is in English.

Search before asking

  • [X] I had searched in the issues and found no similar feature requirement.

Apache Dubbo Component

Java SDK (apache/dubbo)

Descriptions

spring5.3.39 cannot start in springboot3.2.5

Related issues

No response

Are you willing to submit a pull request to fix on your own?

  • [x] Yes I am willing to submit a pull request on my own!

Code of Conduct

Comment From: oxsean

Spring Boot 3.0 builds on and requires Spring Framework 6 https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Release-Notes

Comment From: L1yp

Spring Boot 3.0 builds on and requires Spring Framework 6 https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Release-Notes

download source code and build, install to maven repo?

Comment From: oxsean

I don't quite understand what you mean. Spring Boot 3 must dependency on Spring 6.

Comment From: L1yp

I don't quite understand what you mean. Spring Boot 3 must dependency on Spring 6.

After I introduced dubbo, I couldn't start my project. My springboot version is 3.2.5, and I saw that the spring version of dubbo-config is 5.3.39, so I have questions about this: How to introduce dubbo dependencies in the springboot3 (spring6) environment?

my code:

      <dependency>
        <groupId>org.apache.dubbo</groupId>
        <artifactId>dubbo-spring-boot-autoconfigure-compatible</artifactId>
        <version>3.3.2</version>
      </dependency>
      <dependency>
        <groupId>org.apache.dubbo</groupId>
        <artifactId>dubbo-spring-boot-starter</artifactId>
        <version>3.3.2</version>
      </dependency>

Comment From: oxsean

Refer to this example to import spring boot bom to manage spring versions https://github.com/apache/dubbo-samples/tree/master/1-basic/dubbo-samples-spring-boot

Comment From: sheiy

@oxsean Maybe need a spring boot3 dubbo bom ?

Comment From: L1yp

@oxsean Maybe need a spring boot3 dubbo bom ?

阿里很多项目的spring依赖版本都没有用最新-_-||

Comment From: AlbumenJ

I don't quite understand what you mean. Spring Boot 3 must dependency on Spring 6.

After I introduced dubbo, I couldn't start my project. My springboot version is 3.2.5, and I saw that the spring version of dubbo-config is 5.3.39, so I have questions about this: How to introduce dubbo dependencies in the springboot3 (spring6) environment?

my code:

  <dependency>
    <groupId>org.apache.dubbo</groupId>
    <artifactId>dubbo-spring-boot-autoconfigure-compatible</artifactId>
    <version>3.3.2</version>
  </dependency>
  <dependency>
    <groupId>org.apache.dubbo</groupId>
    <artifactId>dubbo-spring-boot-starter</artifactId>
    <version>3.3.2</version>
  </dependency>

You can directly exclude spring-boot dependencies from dubbo

Comment From: sunheyi6

I don't quite understand what you mean. Spring Boot 3 must dependency on Spring 6.我不太明白你的意思。 Spring Boot 3必须依赖于Spring 6。

After I introduced dubbo, I couldn't start my project. My springboot version is 3.2.5, and I saw that the spring version of dubbo-config is 5.3.39, so I have questions about this: How to introduce dubbo dependencies in the springboot3 (spring6) environment?介绍了Dubbo之后,我无法开始我的项目。我的Springboot版本是3.2.5,我看到Dubbo-Config的弹簧版为5.3.39,所以我对此有疑问:如何在Springboot3(Spring6)环境中介绍Dubbo依赖关系?

my code:  我的代码:

  <dependency>
    <groupId>org.apache.dubbo</groupId>
    <artifactId>dubbo-spring-boot-autoconfigure-compatible</artifactId>
    <version>3.3.2</version>
  </dependency>
  <dependency>
    <groupId>org.apache.dubbo</groupId>
    <artifactId>dubbo-spring-boot-starter</artifactId>
    <version>3.3.2</version>
  </dependency>

you should like this

<dependencies>
    <!-- Spring Boot 3.2.5 -->
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter</artifactId>
        <version>3.2.5</version>
    </dependency>

    <!-- Dubbo dependencies with exclusions -->
    <dependency>
        <groupId>org.apache.dubbo</groupId>
        <artifactId>dubbo-spring-boot-autoconfigure-compatible</artifactId>
        <version>3.3.2</version>
        <exclusions>
            <exclusion>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
    <dependency>
        <groupId>org.apache.dubbo</groupId>
        <artifactId>dubbo-spring-boot-starter</artifactId>
        <version>3.3.2</version>
        <exclusions>
            <exclusion>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
</dependencies>

Comment From: L1yp

I don't quite understand what you mean. Spring Boot 3 must dependency on Spring 6.我不太明白你的意思。 Spring Boot 3必须依赖于Spring 6。

After I introduced dubbo, I couldn't start my project. My springboot version is 3.2.5, and I saw that the spring version of dubbo-config is 5.3.39, so I have questions about this: How to introduce dubbo dependencies in the springboot3 (spring6) environment?介绍了Dubbo之后,我无法开始我的项目。我的Springboot版本是3.2.5,我看到Dubbo-Config的弹簧版为5.3.39,所以我对此有疑问:如何在Springboot3(Spring6)环境中介绍Dubbo依赖关系?

my code:  我的代码:

  <dependency>
    <groupId>org.apache.dubbo</groupId>
    <artifactId>dubbo-spring-boot-autoconfigure-compatible</artifactId>
    <version>3.3.2</version>
  </dependency>
  <dependency>
    <groupId>org.apache.dubbo</groupId>
    <artifactId>dubbo-spring-boot-starter</artifactId>
    <version>3.3.2</version>
  </dependency>

you should like this ```xml org.springframework.boot spring-boot-starter 3.2.5

<!-- Dubbo dependencies with exclusions -->
<dependency>
    <groupId>org.apache.dubbo</groupId>
    <artifactId>dubbo-spring-boot-autoconfigure-compatible</artifactId>
    <version>3.3.2</version>
    <exclusions>
        <exclusion>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter</artifactId>
        </exclusion>
    </exclusions>
</dependency>
<dependency>
    <groupId>org.apache.dubbo</groupId>
    <artifactId>dubbo-spring-boot-starter</artifactId>
    <version>3.3.2</version>
    <exclusions>
        <exclusion>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter</artifactId>
        </exclusion>
    </exclusions>
</dependency>

```

Thank you, I have successfully started it according to the dubbo-examples method.