Why do I get a not exposed to the weaver warnings when making my Spring project?

前端 未结 2 1929
慢半拍i
慢半拍i 2021-02-20 14:38

I seem to get a bunch of warnings like this when I make my Spring project. The project uses Compile Time Weaving and various Spring annotations like Transactional, Autowired, an

2条回答
  •  天命终不由人
    2021-02-20 15:20

    What are they (What's the effect)?

    It (ajc) is saying that it has found some class that it thinks ought to be or to have been "woven", but that can't be done / hasn't been done.

    Should I be concerned about them?

    Yes. It would mean that the AspectJ compile time weaving won't happen properly; i.e. the annotations on some classes won't take effect.

    What can I do to remove them?

    Change your build configs so that the weaver can find all of the code it needs to weave.

    I'm guessing that your application involves multiple Maven modules. If so, then this Answer has some links to the relevant Eclipse/AspectJ and Maven documentation: https://stackoverflow.com/a/13120709/139985. It seems that the AspectJ Maven plugin needs to be explicitly told where to look for stuff.

提交回复
热议问题