Spring AOP表达式 - 包含String的类

时间:2015-09-03 12:32:39

标签: java spring aop

我想编写一个AOP表达式,它将获取名称中包含特定字符串的所有类。假设我有以下类:ProductRestController, ProductSoapController, ProductService。我想写一个表达式,它将获取名称中包含Controller的类。这可能是Spring AOP吗?

1 个答案:

答案 0 :(得分:1)

匹配名称以'Controller'结尾的bean中定义的所有方法。

bean(*Controller)