在访问项目的时候,用户无权限访问该资源时,直接就404了,请问在哪里可以配置无权限时的URL呢?
shiro.ini如下
[main]
nutzdao_realm = com.kdf.cloud.module.mvc.RealmService
authc = org.nutz.integration.shiro.CaptchaFormAuthenticationFilter
[urls]
/login/* = anon
/jsp/** = authc
/common/** = authc
/person/* = authc
/operation/* = authc
/user/logout = logout
web.xml如下
<listener>
<listener-class>org.apache.shiro.web.env.EnvironmentLoaderListener</listener-class>
</listener>
<filter>
<filter-name>ShiroFilter</filter-name>
<filter-class>org.apache.shiro.web.servlet.ShiroFilter</filter-class>
</filter>
<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>