set default value in code example Example: default value for @Value @Value("${some.key:my default value}") private String stringWithDefaultValue;