We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
func InitDubbo(moduleName, environmentName, groupName, nacosUrl, nameSpace string, nacosPort int) { dataId := fmt.Sprintf("%s-%s", moduleName, environmentName) nacosAddress := fmt.Sprintf("%s:%d", nacosUrl, nacosPort) initProvider() //initConsumer() rootConfig := config.NewRootConfigBuilder(). SetConfigCenter(config.NewConfigCenterConfigBuilder(). SetProtocol("nacos").SetAddress(nacosAddress).SetNamespace(nameSpace). SetDataID(dataId).SetGroup(groupName). Build()). Build() if err := config.Load(config.WithRootConfig(rootConfig)); err != nil { panic("Init Dubbo Error Please Check Config") } }
dubbo: application: name: file module: file organization: owner: version: 1.0 environment: dev registries: nacosWithCustomGroup: protocol: nacos address: 192.168.0.8:8848 group: dubbo registry-type: interface namespace: public protocols: triple: name: tri port: 22000 max-server-send-msg-size: 100mib max-server-recv-msg-size: 100mib provider: services:
2024-01-15 21:35:39 WARN config/config_center_config.go:150 [Config Center] Dynamic config center has started, but got empty config with config-center configuration &{Protocol:nacos Address:119.12.161.195:8848 DataId:file-dev Cluster: Group:dubbo Username: Password: Namespace:public AppID:dubbo Timeout:10s Params:map[] FileExtension:yaml}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment
Issue description
Logs
Click me to check logs
The text was updated successfully, but these errors were encountered: