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

后端 未结 6 1783
没有蜡笔的小新
没有蜡笔的小新 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 04:57

    I know it is too late but i'm writing this for anyone have this problem if you are using annotation based configuration... the solution might be like this:

    @Configuration
    @ComponentScan("org.foo.controller.*")
    @EnableAspectJAutoProxy(proxyTargetClass=true)
    public class AppConfig { ...}
    

提交回复
热议问题