使用shiro权限控制,action找不到:404

xiaoxiao2021-02-28  82

在使用shiro的时候,出现以下错误 21:43:49,429 WARN Dispatcher:68 - Could not find action or result: /bos_management/user_login.action No result defined for action at java.lang.Thread.run(Unknown Source)

首先,需要说明一下的是,这个错误属于正常的,使用shiro权限控制的时候,配置权限信息,所以,在认证是否通过都需要路径,同时,认证的action也需要配置上。 <property name="filterChainDefinitions"> <value> /css/** = anon /js/** = anon /images/** = anon /login.html* = anon /user_login.action* = anon /validatecode.jsp* = anon /services/** = anon /** = authc </value> </property>

添加了上面的配置之后,action就找见了,不会出现404的错误了。

转载请注明原文地址: https://www.6miu.com/read-97036.html

最新回复(0)