« first day  last day (15 days later) » 

4:12 AM
Hi
 
4:52 AM
No... i don't want to replace the file. i have to use elasticpath-application.properties but i want to override some of the property which is mentioned in elasticpath-application.properties. So i created ep-external.properties but elasticpath-application.properties taking the priority because as per https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html @PropertySource is loading on 16th number, it means it is taking high priority.
Please suggest me what to do?
 
5:17 AM
In that case also you can read the external file manually and set the property using method : SpringApplicationBuilder.properties(Properties). This will override the repeated properties automatically.
And I see there are more ways to do it as well
 
5:34 AM
Thanks.. I will try this and will come back to you.
In the mean time can you please let me know other ways also.. So that i can try that also
 
 
3 hours later…
8:49 AM
Hi Bittu
public static void main(String[] args) {
new SpringApplicationBuilder(SpringBootCEP.class)
.sources(SpringBootCEP.class)
.properties(getProperties())
.run(args);
}

static Properties getProperties() {
Properties props = new Properties();
String propertyHome = System.getenv(CATALINA_HOME);
String filePath= propertyHome + EXTERNAL_PROPERTIES_FILE;
props.put("spring.config.location", filePath);
return props;
}
Now i am getting different problem.. debug level logs are not printing in log file
 

« first day  last day (15 days later) »