Programmatically, it's something like:
getAutoDetectionConfig().setEnabled(false)
In YAML:
hazelcast:
network:
join:
auto-detection:
enabled: false
And in XML:
<hazelcast>
...
<network>
<join>
<auto-detection enabled="false" />
...
</join>
</network>
...
</hazelcast>
When configured correctly, the node should log the following:
WARNING: [192.168.178.45]:5701 [dev] [4.2.5] No join method is enabled! Starting standalone.
We don't want to see this:
INFO: [192.168.178.45]:5701 [dev] [4.2.5] Using Multicast discovery
Comment From: adrianbob
Hi @wilkinsona, Can I attempt to resolve this issue?
Comment From: snicoll
@adrianbob sure, the issue is yours.
Comment From: adrianbob
Hi @snicoll, @wilkinsona, Created a PR: https://github.com/spring-projects/spring-boot/pull/31863
Comment From: snicoll
Closing in favor of PR.
Comment From: wilkinsona
Unfortunately, the changes in the PR have broken the build due to XML validation failures.
Comment From: wilkinsona
https://github.com/spring-projects/spring-boot/commit/a4bafa88bc167eaff7e0cbf7bfe36da742db2b15 should hopefully fix the build