how to use Spring-EL in @Value when using constants to resolve a property
问题 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 context: SpringApplication springApp = new SpringApplication(configs.toArray()); Properties props = new Properties(); props.setProperty(InternalConstants.JOB_NAME_PROPERTY,