在java 设置中配置400,500页面,应该怎么设置,我在网上搜索了,
基本上都是在web.xml中设置:
<!-- 错误 -->
500
/admin/error
404
/admin/notfound//这个地方是不是用了spring mvc就这么写
但是就是跳转不到我的错误页面。
我用了shiro做权限,网上说在web.xml加:
<!-- Shiro Filter is defined in the spring application context: -->
shiroFilter
org.springframework.web.filter.DelegatingFilterProxy
targetFilterLifecycle
true
<filter-mapping>
<filter-name>shiroFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
<dispatcher>ERROR</dispatcher>
</filter-mapping>
但这个加了,我项目全部的访问路径,都访问不出来,而且也没有访问到我的404页面