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

启动两个使用nacos + cloud dubbo 的应用,它们互为消费者与提供者的时候,永远有一方找不到服务提供者,事实上这个提供者已经在线 #10

Open
WuQuDeRen opened this issue Oct 2, 2019 · 0 comments

Comments

@WuQuDeRen
Copy link

1、启动两个互为消费者与提供者的应用,则其中一个应用永远找不到服务提供者,另一个却可以
nacos + cloud dubbo
备注:如果不使用 nacos + cloud dubbo,而换成最原始的 nacos + dubbo 则一定可以找到服务提供者
2、bootstrap.yml配置
1)
dubbo:
application:
qos-port: 20221
qos-accept-foreign-ip: false
scan:
base-packages: com.fj.nacos.order.web.remote
protocol:
name: dubbo
port: -1
registry:
address: spring-cloud://127.0.0.1
check: false
consumer:
check: false

dubbo:
scan:
base-packages: com.fj.nacos.crm.web.remote
protocol:
name: dubbo
port: -1
registry:
address: spring-cloud://127.0.0.1
consumer:
check: false
application:
qos-enable: true
qos-accept-foreign-ip: false
qos-port: 22223


  1. pom依赖

    org.springframework.cloud
    spring-cloud-dependencies
    Greenwich.SR1
    pom
    import


    org.springframework.cloud
    spring-cloud-alibaba-dependencies
    0.9.0.RELEASE
    pom
    import


    org.springframework.cloud
    spring-cloud-starter-dubbo


    org.springframework.cloud
    com.alibaba.cloud
    spring-cloud-starter-alibaba-nacos-discovery
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

1 participant