I\'m trying to use values from my application.properties file in my service implementation class/bean. But when the bean is initialized through my config class, the property
Those values are injected after the instance is created. So they are null in the constructor.
null
To execute a method after the values are injected use @javax.annotation.PostConstruct:
@PostConstruct public void init(){ // method name doesn't matter functionOne(value_one, value_two, value_three); }