Article From:https://www.cnblogs.com/jimmy-xuli/p/9122840.html

Because the company’s Tomcat website needs to deploy a HTML static web page.

Set up one in the project directory

 /usr/local/tomcat/apache-tomcat-brain-api/webapps/ROOT/htmlThe directory stores the static files of the HTML

Enter the directory /usr/local/tomcat/apache-tomcat-brain-api/webapps/ROOT/WEB-INF/classes/spring

Modify this mvc-config.xml file to add this directory.

Restart Tomcat and complete the test.

 

Link of this Article: Tomcat places static HTML pages

Leave a Reply

Your email address will not be published. Required fields are marked *