-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ban nacos registry and config (#200)
- Loading branch information
1 parent
db7a817
commit 31013a7
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...strap-common/src/main/java/cn/polarismesh/agent/core/bootstrap/PolarisInitProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package cn.polarismesh.agent.core.bootstrap; | ||
|
||
public class PolarisInitProperties { | ||
|
||
public void initialize() { | ||
|
||
// ban nacos as sct currently does not support double registration | ||
System.setProperty("spring.cloud.nacos.config.enabled", "false"); | ||
System.setProperty("spring.cloud.nacos.discovery.enabled", "false"); | ||
|
||
} | ||
} |