可以配置的,在系统初始化的时候配置全局变量errorPage404或errorPage500就可以了,如下代码:
public void onInit(FastEngine engine) throws Exception { engine.getConstant() .setDebug(engine.getProperties().getBoolean("debug", true)) .setLogInterceptorUseTotal(true) .setErrorPage404("/html/404.html")//配置错误界面 .setErrorPage500("/html/500.html") .setCrossDomain(true);}
或者你可以按照Tomcat要求,直接在web.xml中配置错误界面,FastChar会自动识别配置的界面!如何配置web.xml的错误界面可以百度查询一下!😁😁
回复:FastChar
可以配置的,在系统初始化的时候配置全局变量errorPage404或errorPage500就可以了,如下代码:
或者你可以按照Tomcat要求,直接在web.xml中配置错误界面,FastChar会自动识别配置的界面!如何配置web.xml的错误界面可以百度查询一下!😁😁