tomcat7 - How do i pass constant values from tomcat to war file(i.e. based upon spring-boot )? -


after lot of online search & tried lot of experiments. didn't of link can full-fill requirement, choose platform.

note : i using spring-boot maven project & tomcat 7.0.62 version & jdk 7.

first of using embedded tomcat & produce .jar , passing dynamic parameter .jar using command line argument.

now, scenario has been changed. .jar file converts .war file have excluded embedded tomcat i.e. not embedded tomcat.

now want pass same list of command-line argument spring-boot project's .war file outside. from tomcat.

any appreciate.

you have few options in servlet container/application server:

  1. use system properties
  2. use init parameters
  3. use jndi

they'll available via spring's environment work pretty you'd passed them in via command line.


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -