How do and work in Spring?

后端 未结 3 1744
轻奢々
轻奢々 2020-12-14 01:38

I have several services:

  • example.MailService
  • example.LDAPService
  • example.SQLService
  • example.WebServic
3条回答
  •  無奈伤痛
    2020-12-14 02:09

    Include filters are applied after exclude filters, so you have to combine both expressions into one exclude filter. AspectJ expressions allow it (& is replaced by & due to XML syntax):

    
    

    This is a regex, so your expression ".*Service" means 'any number of any character followed by "Service"'. This explicitly excludes the MailService you want to include.

提交回复
热议问题