Use jmix.core.conf-dir to locate application.properties to override default application.properties inside coding

Hi Jmix Team,

I tried to configure jmix.core.conf-dir inside tomcat env

https://docs.jmix.io/jmix/app-properties.html#jmix.core.conf-dir

I set to /opt/tomcat/jmix/conf then I upload application.properties

I want application.properties inside the OS to override the default application.properties inside the coding. Is that possible ?

I compiled it with War file.

Regards,
CK

Hi @ckwan

With jar I place the application.properties in the directory where the .jar is placed.

Regards
Felix

@f.zehnder

I found a way to override it on tomcat.

I set below in setenv.sh

--spring.config.location="file:///path/to/your/config/application.properties"

Regards,
CK