I would like to do something like that following
@Service("${application.property}")
public class SampleClass {
similar to how we see for Value annotation
@Value("${application.property}")
private String field;
The "${application.property}" would be taken from the application.properties file. I feel like this should be possible as the application.properties file is in memory. I have searched however and cannot find a solution. Maybe there is some secret annotation or other configuration to achieve this? Any help is appreciated