0

I have create a SpringBoot fat war application to run it inside his embedded Tomcat.

Now I have a older configuration like follow:

@SpringBootApplication
@PropertySources({
 @PropertySource(value = "${app.config}", ignoreResourceNotFound = true),
})
public class MyApp extends SpringBootServletInitializer {
  ....
}

clearly ${app.config} represent a file linked in JBoss standalone.xml as follows:

<system-properties>
    <property name="app.config" value="file:C://path//configuration.properties"/>
</system-properties>

There is a way to pass this reference by command line? From externalize Spring configuration found here It seems not possible but maybe I read wrong.

Another value I want to pass through the command-line is the follow one set inside application.properties.

This is my application.properties:

logging.config=${log4j2.properties.path}

I couldn't find anything about the second one.

CoderJammer
  • 599
  • 3
  • 8
  • 27

0 Answers0