We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
版本:1.0.9 和mybatis-plus集成后,创建代理: @bean public BeanNameAutoProxyCreator beanNameAutoProxyCreator(){ BeanNameAutoProxyCreator proxyCreator = new BeanNameAutoProxyCreator(); proxyCreator.setProxyTargetClass(true);//默认是false,不设置会导致controller 404 proxyCreator.setBeanNames("*ServiceImpl"); proxyCreator.setInterceptorNames("fluentValidateInterceptor"); return proxyCreator; } 请求报空指针,打断点跟代码发现: Method implMethod = ReflectionUtil.getMethod(targetClass, invocation.getMethod().getName(), parameterTypes); 无法获取接口中的默认方法,从而implMethod=null
The text was updated successfully, but these errors were encountered:
default T getById(Serializable id) { return getBaseMapper().selectById(id); }
Sorry, something went wrong.
No branches or pull requests
版本:1.0.9
和mybatis-plus集成后,创建代理:
@bean
public BeanNameAutoProxyCreator beanNameAutoProxyCreator(){
BeanNameAutoProxyCreator proxyCreator = new BeanNameAutoProxyCreator();
proxyCreator.setProxyTargetClass(true);//默认是false,不设置会导致controller 404
proxyCreator.setBeanNames("*ServiceImpl");
proxyCreator.setInterceptorNames("fluentValidateInterceptor");
return proxyCreator;
}
请求报空指针,打断点跟代码发现:
Method implMethod = ReflectionUtil.getMethod(targetClass, invocation.getMethod().getName(), parameterTypes);
无法获取接口中的默认方法,从而implMethod=null
The text was updated successfully, but these errors were encountered: