处理404

    技术2022-05-20  50

    web.xml文件

     

     <error-page>  <error-code>404</error-code>  <location>/building.jsp</location> </error-page>

     

     

    jsp页面

     

    <%@ page language="java" contentType="text/html; charset=utf-8" isErrorPage="true"    pageEncoding="utf-8"%> <%response.setStatus(HttpServletResponse.SC_OK);%>


    最新回复(0)