美文网首页
Spring错误:but was actually of typ

Spring错误:but was actually of typ

作者: 小y同学hh | 来源:发表于2018-11-01 16:08 被阅读0次

    设置ASpectJ自动代理属性,即TrackCounterConfig.java 文件的注解

    //开启AspectJ 自动代理模式,如果不填proxyTargetClass=true,默认为false,@EnableAspectJAutoProxy(proxyTargetClass=true)

    //@EnableAspectJAutoProxy

    //设置proxyTargetClass属性,可解决JDK动态代理类注入抛出的BeanNotOfRequiredTypeException异常

    @EnableAspectJAutoProxy(proxyTargetClass=true)  //启动AspectJ自动代理

    相关文章

      网友评论

          本文标题:Spring错误:but was actually of typ

          本文链接:https://www.haomeiwen.com/subject/kkuxxqtx.html