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
SecureInvokeAspect里面的 List parameters = Stream.of(method.getParameterTypes()).map(Class::getName).collect(Collectors.toList()); Class::getName如果是基本类型,则后面无法反射Class.forName成功,需要包装下成包装类型,可以参考hutool的 List parameters = Stream.of(method.getParameterTypes()) .map(type -> BasicType.wrap(type).getName()) .collect(Collectors.toList());
泛型这个没有找到很好的解决方案
还有加了这个顺序后@order(Ordered.HIGHEST_PRECEDENCE + 1)//确保最先执行,因为spring事务优先级是比较低的,可能 TransactionSynchronizationManager.isActualTransactionActive();返回false,从而无法执行后续代码
The text was updated successfully, but these errors were encountered:
No branches or pull requests
SecureInvokeAspect里面的 List parameters = Stream.of(method.getParameterTypes()).map(Class::getName).collect(Collectors.toList());
Class::getName如果是基本类型,则后面无法反射Class.forName成功,需要包装下成包装类型,可以参考hutool的
List parameters =
Stream.of(method.getParameterTypes())
.map(type -> BasicType.wrap(type).getName())
.collect(Collectors.toList());
泛型这个没有找到很好的解决方案
还有加了这个顺序后@order(Ordered.HIGHEST_PRECEDENCE + 1)//确保最先执行,因为spring事务优先级是比较低的,可能
TransactionSynchronizationManager.isActualTransactionActive();返回false,从而无法执行后续代码
The text was updated successfully, but these errors were encountered: