You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "Shiyajian (GitHub)" <gi...@apache.org> on 2019/02/23 12:22:51 UTC
[GitHub] [incubator-dubbo-spring-boot-project] Shiyajian opened issue #456: 关于依赖的一些优化建议
我编写了一个Spring Boot 和 Dubbo 2.7.0 的 Demo,刚开始时候,完全按照 ReadMe 中的配置编写,结果报错,错误如下:
```
Caused by: java.lang.ClassNotFoundException: org.apache.curator.retry.ExponentialBackoffRetry
```
后来参考了 **dubbo-registry-zookeeper-samples**项目,发现还缺少以下依赖:
```
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-framework</artifactId>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-recipes</artifactId>
</dependency>
<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
<exclusions>
<exclusion>
<artifactId>log4j</artifactId>
<groupId>log4j</groupId>
</exclusion>
<exclusion>
<artifactId>slf4j-log4j12</artifactId>
<groupId>org.slf4j</groupId>
</exclusion>
</exclusions>
</dependency>
```
增加了这几个依赖之后,项目就可以正常启动使用了。 咱们这边是否可以考虑下,将这三个依赖补充到 ReadeMe 中,或者增加到 boot-dubbo-spring-starter 的pom依赖中呢?
[ Full content available at: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/456 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [incubator-dubbo-spring-boot-project] kleen commented on issue #456: 关于依赖的一些优化建议
Posted by "kleen (GitHub)" <gi...@apache.org>.
I also encountered this problem.
[ Full content available at: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/456 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [incubator-dubbo-spring-boot-project] mercyblitz commented on issue #456: 关于依赖的一些优化建议
Posted by "mercyblitz (GitHub)" <gi...@apache.org>.
Thanks for your good suggestion, it will be added into REAMD.md.
[ Full content available at: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/456 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [incubator-dubbo-spring-boot-project] mercyblitz closed issue #456: 关于依赖的一些优化建议
Posted by "mercyblitz (GitHub)" <gi...@apache.org>.
[ issue closed by mercyblitz ]
[ Full content available at: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/456 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [incubator-dubbo-spring-boot-project] mercyblitz commented on issue #456: 关于依赖的一些优化建议
Posted by "mercyblitz (GitHub)" <gi...@apache.org>.
Thanks for your good suggestion, it will be added into REAMD.md.
[ Full content available at: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/456 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [incubator-dubbo-spring-boot-project] Curtaingit commented on issue #456: 关于依赖的一些优化建议
Posted by "Curtaingit (GitHub)" <gi...@apache.org>.
Today, I also encountered this problem.
Thanks for you answer.
[ Full content available at: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/456 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org