I'd like to set a java property with a value from my properties file or, if it doesn't exist, from a function.
Pseudo code might look like this -
@Value("${server.thread.count:Runtime.getRuntime().availableProcessors()}")
private int numOfThreads;
Any suggestions?