FAQ Database Discussion Community


how to use Spring-EL in @Value when using constants to resolve a property

spring,spring-boot,spring-el,spring-environment
I'm trying to use a constant to define a property and then resolving it with the @Value annotation. I defined the constant in an interface: public interface InternalConstant{ public static final String JOB_NAME_PROPERTY = "javabatch.jobName"; } I'm using springboot and I'm adding the property as a default property to the...