application.properties:
//timeout in ms
timeout = 20000;
@Value("${timeout} / 1000")
private int timeoutInSeconds;
Is it possible to apply some calculations directly on a @Value
attribute?
At least my example does not work this way...
To answer my own question:
@Value("#{${timeout} / 1000}")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With