So I have my spring bott app:
@Configuration
@PropertySource("${configuration.file}")
public class Application extends SpringBootServletInitializer implements CommandLineRunner {
...
public static void main(String[] args) throws IOException {
SpringApplication app = new SpringApplication(Application.class);
System.setProperty("configuration.file","file:"+"path to my file");
app.run(args);
}
...
When i run my app on windows configuration.file is set properly but when I run this on tomcat server I get:
Could not resolve placeholder 'configuration.file' in string value "${configuration.file}"
What could be the cause of the problem?