20190814_tomcat error page configuration items

1. Open the project in web.xml, not pay attention to the tomcat web.xml; generally in the WEB-INF directory of the project, and then add the following statement

		<error-code>404</error-code> <!--错误码-->
		<location>/WEB-INF/error/404.jsp</location> <!--相对webapps/ROOT/-->

2. The next step is to create a corresponding file in the corresponding path


Guess you like

Origin www.cnblogs.com/wxylog/p/11351230.html