zoukankan      html  css  js  c++  java
  • Spring配置错误 No adapter for IAdvice of type

    参考:http://www.2cto.com/kf/201305/211728.html 错误十三

    在配置拦截器后,运行的时候报错=>

    Error creating context 'spring.root': No adapter for IAdvice of type [Test.JointVenture.Interceptor.LoggingInterceptor].
    
       InnerException:{"Unknown advisor type 'Test.JointVenture.Interceptor.LoggingInterceptor'; Can only include Advisor or Advice type beans in interceptorNames chain except for last entry,which may also be target or TargetSource"}

    知道是配置advice的位置有问题但是就是不知道哪里有问题,看了上面的地址的配置才明白忘了继承 IMethodInterceptor 接口了,以前配置的都是正确的所以木有什么问题,

    这次是新建的类名,因为不想重新写,所以把以前写的类里面的类容Copy过来的,就出现了上面的问题,折腾了我好几个小时呢,所以懒惰还SHI人啊,得勤快点才好啊^_^不能怕麻烦,怕麻烦就会更麻烦!!!

  • 相关阅读:
    MVC3 验证码
    说说.NET反编译工具
    HTTP协议学习
    Spring Web Flow 的优缺点
    Java CLASSPATH 引发的问题
    MySQL 高级
    Java Policy
    AJAX
    数据结构与算法学习资源
    C#学习资源
  • 原文地址:https://www.cnblogs.com/huhaochuang/p/3284861.html
Copyright © 2011-2022 走看看