标签: java spring aop
我想编写一个AOP表达式,它将获取名称中包含特定字符串的所有类。假设我有以下类:ProductRestController, ProductSoapController, ProductService。我想写一个表达式,它将获取名称中包含Controller的类。这可能是Spring AOP吗?
ProductRestController, ProductSoapController, ProductService
答案 0 :(得分:1)
匹配名称以'Controller'结尾的bean中定义的所有方法。
bean(*Controller)