java - What is the correct META-INF directory location for context.xml in Tomcat? -


The application must have a "context.xml" file to deploy the configuration to the specification:

  src / main / resources / META-INF / context.xml  

... or ...

  src / main / webapp /META-INF/context.xml?  

Rightness to ask: Have seen disputed advice on Stack Overflow and could not find a specific location specified in it.

I think this should be a duplicate question, but so far my search is on a real The obvious answer has not come with. And the documentation is not really specific.

This is src / main / webapp / META-INF because the file needs to be posted in the Web root / Meta-INF folder, not WEB-INF / square / Meta-INF.


Comments