Announcement Announcement Module
No announcement yet.
Non Spring beans Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • techno123
    started a topic Non Spring beans

    Non Spring beans

    I configured aop to do method logging in applicationContext.xml. What I observed is this logging is working only for Spring Beans. Is this an expected behaviour? To make logging work, should I make all my classes as spring beans?

    Any references help me. Thanks.

  • Marten Deinum
    Spring will only advice beans it knows about, so only beans in the applicationContext. So it is expected behavior. I suggest the reference guide as this is explained quite detailed.

    Leave a comment: