lundi 23 mars 2015

Aspect of AspectJ with SpringAOP doesn't work

I know there are a lot of questions with the same problem, but I really don't understand what's the problem, as I tried to follow a lot of popular tutorials from scratch and it still doesn't work.


I ask you to have a look at my project here link to github and give a piece of advice as I really gave up to make it work.


I use Eclipse Luna + Tomcat 7, everything else you can see from the github as there is really not convenient to past everything here.




SOLVED: Actually, I think I need to be more specific with what I did to solve this puzzle: @tmarwen gave me a great tip off what could be wrong, I tested and saw that my dao-context.xml doesn't instantiate beans at all. So I moved all bean instantiation and <aop:aspectj-autoproxy /> to the separate config.xml file in the WEB-INF along with web.xml file. After that everything started working perfectly.


Aucun commentaire:

Enregistrer un commentaire