Specifying a nested context path in Tomcat using autodeploy inside webapps /

I know that in the default configuration of Tomcat 8, I can drop the foo.war file into the webapps/ directory, and Tomcat will automatically launch my web application using the context path /foo/ .

Boo, what would the WAR file name be if I wanted the context path to be /foo/bar ?

+6
source share
1 answer

Deploying a WAR file named foo#bar.war in webapps will result in the path to the /foo/bar context. See Apache Tomcat 8 Configuration Link: Context Container: Naming .

+3
source

Source: https://habr.com/ru/post/1011930/


All Articles