Skip to content
New issue

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

step8测试方法有点问题 #20

Open
HuangtianyuCN opened this issue May 16, 2019 · 2 comments
Open

step8测试方法有点问题 #20

HuangtianyuCN opened this issue May 16, 2019 · 2 comments

Comments

@HuangtianyuCN
Copy link

testClassFilter()这个测试方法不论expression给什么包,都能匹配到类。
testMethodInterceptor()我自己写的版本无法匹配到方法

@HuangtianyuCN
Copy link
Author

解决了。问题出在"execution(* com.sonihr..(..))"表示当前包下,"execution(* com.sonihr...(..))"表示当钱包及子孙包下。我的
image这三个类是放在bean下的,即用第一个execution无法定位到对应方法。改成正确的路径或采用第二种execution均可修复该问题。

@FGH9311
Copy link

FGH9311 commented Dec 1, 2019

step8 testClassFilter()测试 随便写个包名都能通过测试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants