// field can't be final when using this to load a config value @Value("${some.key:my default value}")
@Configuration public class AppConfig { @Value("#{${procmultiplier} == 0 ? 1 : ${procmultiplier}}") public Integer procMultiplier; }