Spring autowired…pass source class to autowired class

前端 未结 2 1466
孤独总比滥情好
孤独总比滥情好 2021-01-14 06:20

Caught up in a weird requirement. I need to attach unique error id to log4j message and return that message id back to interface.So, I though lets create a spring service, l

2条回答
  •  旧时难觅i
    2021-01-14 07:07

    Why dont you use Spring AOP. AOP provides you much accessibility and features, and you can exploit its interesting features later also, when your application becomes heavy. Spring AOP

提交回复
热议问题