sunheyi6 commented on issue #15041:
URL: https://github.com/apache/dubbo/issues/15041#issuecomment-2661766220
> > 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
<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>
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]