Closed craynic closed 1 day ago
You can try spring.cloud.nacos.discovery.register-enabled=false
Cool. Hope it documented in wiki.
It's documented, but it doesn't look like the documentation has been updated, so we'll update this configuration item later!
This issue has been open 30 days with no activity. This will be closed in 7 days.
This issue has been automatically marked as stale because it hasn't had any recent activity.If you think this should still be open, or the problem still persists, just pop a reply in the comments and one of the maintainers will (try!) to follow up. Thank you for your interest and contribution to the Sping Cloud Alibaba Community.
Which Component Nacos Discovery
Describe what problem you have encountered Scenario: I start a local instance for development. It needs to call dev deployments, but it shouldn't be called by dev deployments.
Describe what information you have read There is no option to disable auto registering according to the doc. I tried marking the instance offline on nacos web. It worked, while it turned online every time I restart the instance. It's annoyed to click the offline button every time I restart the instance. I tried setting
-Dspring.cloud.nacos.discovery.weight=0
. It worked, while it is not documented. I'm afraid this will not function some day. So what's the formal way to do this?