I have this in my Java code.If fieldOne is not present in properties file 1)In prod environment(application_prod.yml) --fieldOne value should be true 2)For all other environment (application_uat.yml/application_int.yml)--fieldOne value should be false.
How to achieve it?
@Value("${fieldOne:true}")
private String fieldOne;