Skip to content

step8测试方法有点问题 #20

Description

@HuangtianyuCN

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

Activity

  1. HuangtianyuCN commented on May 16, 2019

    @HuangtianyuCN
    Author

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

  2. FGH9311 commented on Dec 1, 2019

    @FGH9311

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions