Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于依赖的一些优化建议 #456

Closed
Shiyajian opened this issue Feb 23, 2019 · 4 comments
Closed

关于依赖的一些优化建议 #456

Shiyajian opened this issue Feb 23, 2019 · 4 comments
Assignees
Milestone

Comments

@Shiyajian
Copy link

我编写了一个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依赖中呢?

@mercyblitz mercyblitz self-assigned this Feb 24, 2019
@mercyblitz mercyblitz added this to the 2.7.1 milestone Feb 24, 2019
@mercyblitz
Copy link
Contributor

Thanks for your good suggestion, it will be added into REAMD.md.

1 similar comment
@mercyblitz
Copy link
Contributor

Thanks for your good suggestion, it will be added into REAMD.md.

@Curtaingit
Copy link

Today, I also encountered this problem.
Thanks for you answer.

@kleen
Copy link

kleen commented Mar 6, 2019

I also encountered this problem.

This was referenced Jan 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants