修改shiro拦截器问题
This commit is contained in:
@@ -14,6 +14,7 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.List;
|
||||
import java.util.Properties;
|
||||
|
||||
@@ -45,6 +46,11 @@ public class RequestSearchPlugin implements Interceptor {
|
||||
|
||||
@Override
|
||||
public Object intercept(Invocation invocation) throws Throwable {
|
||||
Method method = invocation.getMethod();
|
||||
logger.info("method is " + method.getName());
|
||||
if ("findByAccount".equals(method.getName())){
|
||||
return invocation.proceed();
|
||||
}
|
||||
// 准备参数
|
||||
Executor executor = (Executor) invocation.getTarget();
|
||||
Object[] args = invocation.getArgs();
|
||||
|
||||
Reference in New Issue
Block a user