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
为什么发布配置会失败 #12057
Labels
Comments
请给出发布失败的报错信息, 以及${user.home}/logs/nacos 日志中的相关信息 |
No more response from author, and current information is not enough to judge problem. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
try {
// 初始化配置服务,控制台通过示例代码自动获取下面参数
String serverAddr = "{serverAddr}";
String dataId = "{dataId}";
String group = "{group}";
Properties properties = new Properties();
properties.put("serverAddr", serverAddr);
ConfigService configService = NacosFactory.createConfigService(properties);
boolean isPublishOk = configService.publishConfig(dataId, group, "content");
System.out.println(isPublishOk);
} catch (NacosException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
这个案例为什么发布失败。文档也没有具体描述。
The text was updated successfully, but these errors were encountered: