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:
- use system properties
- use init parameters
- use jndi
they'll available via spring's environment
work pretty you'd passed them in via command line.
Comments
Post a Comment