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

默认namespace是public #1

Open
HinsYang opened this issue Apr 29, 2020 · 0 comments
Open

默认namespace是public #1

HinsYang opened this issue Apr 29, 2020 · 0 comments

Comments

@HinsYang
Copy link

我的nacos在内网跑,有两个命名空间,dev和local

MonitorServiceImpl

       //判断nacos地址
        String nacosAddr = tomlParseResult.getString(NACOS_ADDR);
        if (StringUtils.isEmpty(nacosAddr)) {
            throw new IllegalArgumentException(NACOS_ADDR + " is empty");
        }

        //nacos命名空间,nullable
        String nameSpace = tomlParseResult.getString(NACOS_NAMESPACE);

        Properties prop = new Properties();
        prop.setProperty("serverAddr", nacosAddr);
        prop.setProperty("namespace", nameSpace);
        NamingService namingService = NacosFactory.createNamingService(prop);
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