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人啊,得勤快点才好啊^_^不能怕麻烦,怕麻烦就会更麻烦!!!

  • 相关阅读:
    C#函数参数前的修饰符
    C#正则表达式简单案例解析
    C#正则表达式
    C#反射Reflection
    C#事件
    C#委托的使用
    无法解析主机报错
    SparkStreaming对接rabbitMQ
    load文件到hive,并保存
    kafka模式对比
  • 原文地址:https://www.cnblogs.com/huhaochuang/p/3284861.html
Copyright © 2011-2022 走看看