Spring-MVC Problem using @Controller on controller implementing an interface

后端 未结 6 1771
没有蜡笔的小新
没有蜡笔的小新 2020-12-08 04:41

I\'m using spring 2.5 and annotations to configure my spring-mvc web context. Unfortunately, I am unable to get the following to work. I\'m not sure if this is a bug (seem

6条回答
  •  时光取名叫无心
    2020-12-08 05:15

    What I needed to do was replace

     
    

    with

     
    

    This forces aspectj to use CGLIB for doing aspects instead of dynamic proxies - CGLIB doesn't lose the annotation since it extends the class, whereas dynamic proxies just expose the implemented interface.

提交回复
热议问题