Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Spring @Value default value

@Value("${some.key:my default value}")
private String stringWithDefaultValue;

@Value("${some.key:true}")
private boolean booleanWithDefaultValue;
Source by www.baeldung.com #
 
PREVIOUS NEXT
Tagged: #Spring #default
ADD COMMENT
Topic
Name
1+9 =