修改shiro拦截器问题

This commit is contained in:
limqhz
2021-08-27 14:30:55 +08:00
parent 2b44b16bd9
commit 87b6ae5480
3 changed files with 121 additions and 7 deletions

View File

@@ -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();