It is both general and Spring Specific. context-param
allows you to specify context parameters (that is general) but what you specify is specific to your application, and your application will look for the parameter and use it.
In this case it is the key of the system property that should specify the root directory of this web app. Applied by WebAppRootListener or Log4jConfigListener.
I had the same question, and found this page and later WebApproot in Spring. It is best explained there in mblinn's answer.
this param is very important, in my tomcat I have two app, in order to achieve localhost/ navigates to app1 and 127.0.0.1/ navigates to app2, FYI both of their context path is / , what I do is I add another Host element to tomcat's server.xml with defaultHost name is 127.0.0.1 and appBase is parent dir of ROOT.war (app2)
hope this is useful
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With