SSM custom 404 and 500 error reporting interface
1. In web.xml Configuration 2, test 404 error
1. In web.xml Medium configuration
<!--Replace the 400 and 500 error message screens-->
<error-page>
<error-code>404</error-code>
<location>/WEB-INF/error/404.jsp</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/WEB-INF/error/500.jsp</location>
</error-page>
2. Test 404 error
As shown in the figure below, is the effect much more comfortable than a pile of newspapers.
Read More:
- [Go] Solve the empty interface interface{} cannot use (type []string) as type []interface {}
- SSM project interceptor infinite loop error [How to Solve]
- When integrating redis with SSM framework, error creating bean with name ‘rediscontentserviceimpl’ defined in file
- Unknown custom element: [xxx] – did you register the component correctly…
- [Solved] SSM Project Error: Error during artifact deployment. See server log for details.
- [Solved] MindSpore Network custom reverse error: TypeError: The params of function ‘bprop’ of
- Zookper Error: [org.apache.zookeeper. ClientCnxn]-[WARN] Session 0x0 for server 192.168.25.132/192.168.25.132:2181, unexpected error…(SSM integration)
- [Solved] error: failed to run custom build command for `librocksdb-sys v6.17.3`
- [How to Solve Vue warn]: Unknown custom element: did you register the component correctly?
- Cocos creator custom engine NPM Error [How to Fix]
- Aspecj cannot intercept method annotations on an interface
- Ajax prevents page requests from reporting errors
- When using postman assertion, the global variables set in the tests of the pit will take effect only after the interface is executed
- Sentinel could not find the urlblockhandler interface solution
- MFC:: error C2065: “IDD_DIALOG1”: undeclared identifier Sending and handling custom messages in MFC threads
- [Solved] Mybatis uses the PageHelper paging plugin error: Could not find method on interface ibatis.executor.Executor named query.
- [Solved] Interface automation test: JSON parse error
- [Elasticsearch Exception]Found interface org.elasticsearch.common.bytes.BytesReference
- Kettle Flash Back Error:The graphical interface cannot be opened. There is an ETI installation problem
- Two implementation methods of spring boot scan mapper interface class