Tomcat8.5 configuration virtual path is invalid

It turns out that the virtual path is fine, but suddenly it fails somehow

Solution:

Change the web and xml listings to true

 <servlet>
        <servlet-name>default</servlet-name>
        <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
        <init-param>
            <param-name>debug</param-name>
            <param-value>0</param-value>
        </init-param>
        <init-param>
            <param-name>listings</param-name>
            <param-value>true</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>

 

Guess you like

Origin blog.csdn.net/ClearLoveQ/article/details/107201097