You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/12/18 02:04:55 UTC

[GitHub] [dubbo] lamb007 commented on issue #11128: java.lang.RuntimeException: Can not create registry service-discovery-registry://xxx.xxx.xxx.xxx:2181/,服务启动报这个错

lamb007 commented on issue #11128:
URL: https://github.com/apache/dubbo/issues/11128#issuecomment-1356626502

   感谢你的帮助。
   我遇到了一个新问题
   dubbo版本:2.7.3
   在springboot中配置多注册中心:
   `dubbo:
     application:
       name: user-provider
     protocol:
       name: dubbo
       # 协议端口
       port: 20880
     provider:
       filter: -exception
     registries:
       beijingRegistry: # 注册中心名称
         address: zookeeper://xxx.xxx.xxx.xxx:2181
         register: true`
   
   启动springboot服务时失败:
   `Description:
   
   Configuration property name 'dubbo.registries.beijingRegistry' is not valid:
   
       Invalid characters: 'R'
       Bean: beijingRegistry
       Reason: Canonical names should be kebab-case ('-' separated), lowercase alpha-numeric characters and must start with a letter
   
   Action:
   
   Modify 'dubbo.registries.beijingRegistry' so that it conforms to the canonical names requirements.`
   
   修改为beijing-registry后仍然失败:
   `Description:
   
   A component required a bean named 'registryDefault' that could not be found.
   
   
   Action:
   
   Consider defining a bean named 'registryDefault' in your configuration.`
   请问如何在2.7.3中通过application.yml配置dubbo


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org