Let's say I have a spring profile that is specific to a particular operating system:
spring:
profiles: mac
cloud:
zookeeper:
discovery:
preferIpAddress: false
instanceHost: docker.for.mac.localhost
Is there some way to automatically enable a spring profile based on the current operating system?
So in my case, I want the above profile to automatically become active if it is on a Darwin os.
Maybe there is some way to do it with system properties? In this case, I want the mac
profile to be active if os.name
contains "Darwin"?
Any ideas?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…