I created a config.properties file located in: WEB_INF folder. On my local its working well but after I'm upload the war to remote and trying to get some property I get exception,
This is the way that I get some property in code:
@PropertySource(value = { "WEB-INF/config.properties" })
@Autowired
Environment environment;
String databasehost=this.environment.getProperty("DB_HOST");
can someone explain me what is wrong? I already tried to check if this file exist inside the war that uploaded, and it was... thank you!