My Spring boot app has this application structure:
you can try to use @PropertySource
and give it the path to property file, you can find the sample below:
@Component
@PropertySource("classpath:application.properties")
public class EntityManager {
@Value("${language}")
private static String newLang;
public EntityManager(){
System.out.println("langauge is: " + newLang);
}
}