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 融合 Spring Cloud,成为注册配置中心】的反馈 #836

Open
taolixi1991 opened this issue Nov 14, 2024 · 0 comments

Comments

@taolixi1991
Copy link

[在此处输入反馈]
@NacosInjected存在引入失效的问题,该BUG记录在nacos-group/nacos-examples#28

建议文档中替换方法。通过注入NacosConfigManager 再调用getConfigService方法获取ConfigService。示例代码:

    @Autowired
    private NacosConfigManager nacosConfigManager;


public static void main(String[] args) {
ConfigService configService = nacosConfigManager.getConfigService();
}


文档详细信息

请勿编辑此部分。nacos.io ➟ GitHub 问题链接必须具有此部分。

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