报错详情

在使用SkyWalking集成SpringBoot时,查看agent/logs下skywalking-api.log日志时,发现警告日志,大概意思就是插件中某些类没有

WARN 2020-09-16 09:19:21:618 main AbstractClassEnhancePluginDefine : enhance class com.hnmqet.demo02.controller.OrderTblController by plugin org.apache.skywalking.apm.plugin.spring.mvc.v4.define.RestControllerInstrumentation is not working. Because witness class org.springframework.cache.interceptor.DefaultKeyGenerator is not existed.
WARN 2020-09-16 09:19:21:619 main AbstractClassEnhancePluginDefine : enhance class com.hnmqet.demo02.controller.OrderTblController by plugin org.apache.skywalking.apm.plugin.spring.mvc.v4.define.RestControllerForLowVersionInstrumentation is not working. Because witness class org.springframework.cache.interceptor.DefaultKeyGenerator is not existed.
WARN 2020-09-16 09:19:21:638 main AbstractClassEnhancePluginDefine : enhance class com.hnmqet.demo02.controller.UndoLogController by plugin org.apache.skywalking.apm.plugin.spring.mvc.v4.define.RestControllerInstrumentation is not working. Because witness class org.springframework.cache.interceptor.DefaultKeyGenerator is not existed.
WARN 2020-09-16 09:19:21:638 main AbstractClassEnhancePluginDefine : enhance class com.hnmqet.demo02.controller.UndoLogController by plugin org.apache.skywalking.apm.plugin.spring.mvc.v4.define.RestControllerForLowVersionInstrumentation is not working. Because witness class org.springframework.cache.interceptor.DefaultKeyGenerator is not existed.
WARN 2020-09-16 09:19:22:138 main AbstractClassEnhancePluginDefine : enhance class org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController by plugin org.apache.skywalking.apm.plugin.spring.mvc.v3.define.ControllerInstrumentation is not working. Because witness class org.springframework.web.servlet.view.xslt.AbstractXsltView is not existed.
WARN 2020-09-16 09:19:22:138 main AbstractClassEnhancePluginDefine : enhance class org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController by plugin org.apache.skywalking.apm.plugin.spring.mvc.v4.define.ControllerInstrumentation is not working. Because witness class org.springframework.cache.interceptor.DefaultKeyGenerator is not existed.
WARN 2020-09-16 09:19:22:138 main AbstractClassEnhancePluginDefine : enhance class org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController by plugin org.apache.skywalking.apm.plugin.spring.mvc.v4.define.ControllerForLowVersionInstrumentation is not working. Because witness class org.springframework.cache.interceptor.DefaultKeyGenerator is not existed.
WARN 2020-09-16 09:19:27:298 main AbstractClassEnhancePluginDefine : enhance class org.springframework.web.method.HandlerMethod by plugin org.apache.skywalking.apm.plugin.spring.mvc.v3.define.HandlerMethodInstrumentation is not working. Because witness class org.springframework.web.servlet.view.xslt.AbstractXsltView is not existed.
WARN 2020-09-16 09:19:27:299 main AbstractClassEnhancePluginDefine : enhance class org.springframework.web.method.HandlerMethod by plugin org.apache.skywalking.apm.plugin.spring.mvc.v4.define.HandlerMethodInstrumentation is not working. Because witness class org.springframework.cache.interceptor.DefaultKeyGenerator is not existed.
WARN 2020-09-16 09:19:27:308 main AbstractClassEnhancePluginDefine : enhance class org.springframework.web.method.support.InvocableHandlerMethod by plugin org.apache.skywalking.apm.plugin.spring.mvc.v3.define.InvocableHandlerInstrumentation is not working. Because witness class org.springframework.web.servlet.view.xslt.AbstractXsltView is not existed.
WARN 2020-09-16 09:19:27:308 main AbstractClassEnhancePluginDefine : enhance class org.springframework.web.method.support.InvocableHandlerMethod by plugin org.apache.skywalking.apm.plugin.spring.mvc.v4.define.InvocableHandlerInstrumentation is not working. Because witness class org.springframework.cache.interceptor.DefaultKeyGenerator is not existed.
WARN 2020-09-16 09:19:27:671 main AbstractClassEnhancePluginDefine : enhance class com.mysql.cj.jdbc.ConnectionImpl by plugin org.apache.skywalking.apm.plugin.jdbc.mysql.v8.define.ConnectionImplCreateInstrumentation is not working. Because witness class com.mysql.cj.interceptors.QueryInterceptor is not existed.
WARN 2020-09-16 09:19:27:671 main AbstractClassEnhancePluginDefine : enhance class com.mysql.cj.jdbc.ConnectionImpl by plugin org.apache.skywalking.apm.plugin.jdbc.mysql.v8.define.ConnectionInstrumentation is not working. Because witness class com.mysql.cj.interceptors.QueryInterceptor is not existed.
WARN 2020-09-16 09:19:27:717 main AbstractClassEnhancePluginDefine : enhance class com.mysql.cj.jdbc.ServerPreparedStatement by plugin org.apache.skywalking.apm.plugin.jdbc.mysql.v8.define.PreparedStatementInstrumentation is not working. Because witness class com.mysql.cj.interceptors.QueryInterceptor is not existed.
WARN 2020-09-16 09:19:27:717 main AbstractClassEnhancePluginDefine : enhance class com.mysql.cj.jdbc.ServerPreparedStatement by plugin org.apache.skywalking.apm.plugin.jdbc.mysql.v8.define.PreparedStatementSetterInstrumentation is not working. Because witness class com.mysql.cj.interceptors.QueryInterceptor is not existed.
WARN 2020-09-16 09:19:27:717 main AbstractClassEnhancePluginDefine : enhance class com.mysql.cj.jdbc.ServerPreparedStatement by plugin org.apache.skywalking.apm.plugin.jdbc.mysql.v8.define.PreparedStatementNullSetterInstrumentation is not working. Because witness class com.mysql.cj.interceptors.QueryInterceptor is not existed.
WARN 2020-09-16 09:19:27:717 main AbstractClassEnhancePluginDefine : enhance class com.mysql.cj.jdbc.ServerPreparedStatement by plugin org.apache.skywalking.apm.plugin.jdbc.mysql.v8.define.PreparedStatementIgnoredSetterInstrumentation is not working. Because witness class com.mysql.cj.interceptors.QueryInterceptor is not existed.
WARN 2020-09-16 09:19:27:762 main AbstractClassEnhancePluginDefine : enhance class com.mysql.cj.jdbc.StatementImpl by plugin org.apache.skywalking.apm.plugin.jdbc.mysql.v8.define.StatementInstrumentation is not working. Because witness class com.mysql.cj.interceptors.QueryInterceptor is not existed.

解决办法

把可选插件文件夹中apm-spring-annotation-plugin-8.0.1.jar包,移入plugins中即可

【问题解决】Because witness class org.springframework.cache.interceptor.DefaultKeyGenerator is not existed相关推荐

  1. 【springboot错误】 Failed to instantiate [org.springframework.transaction.interceptor.BeanFactoryTransac

    在起来的一个项目中,使用原有的配置,进行启动,发现一直有一个错误循环打印,都是fegin类: getTypeForFactoryBean:1516] : Bean creation exception ...

  2. 开启注解缓存_Spring Boot 2.x基础教程:进程内缓存的使用与Cache注解详解

    随着时间的积累,应用的使用用户不断增加,数据规模也越来越大,往往数据库查询操作会成为影响用户使用体验的瓶颈,此时使用缓存往往是解决这一问题非常好的手段之一.Spring 3开始提供了强大的基于注解的缓 ...

  3. spring源码分析之cache注解

    Spring 3.1 引入了激动人心的基于注释(annotation)的缓存(cache)技术,它本质上不是一个具体的缓存实现方案(例如EHCache 或者 OSCache),而是一个对缓存使用的抽象 ...

  4. Spring Cache抽象-缓存注解

    文章目录 概述 Spring缓存的基本原理 @Cacheable :主要针对方法配置,能够根据方法的请求参数对其结果进行缓存 键生成器 带条件的缓存 @Cacheable 注解参数说明 示例-缓存管理 ...

  5. SpringBoot2.0 基础案例(13):基于Cache注解模式,管理Redis缓存

    本文源码 GitHub地址:知了一笑 https://github.com/cicadasmile/spring-boot-base 一.Cache缓存简介 从Spring3开始定义Cache和Cac ...

  6. Spring Cache 介绍

    缓存是实际工作中非常常用的一种提高性能的方法, 我们会在许多场景下来使用缓存. 本文通过一个简单的例子进行展开,通过对比我们原来的自定义缓存和 spring 的基于注释的 cache 配置方法,展现了 ...

  7. 缓存(cache、Redis)

    缓存(Cache,Redis) 1.pom <?xml version="1.0" encoding="UTF-8"?> <project x ...

  8. exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException

    原因: Spring Boot异常org.springframework.beans.factory.NoUniqueBeanDefinitionException:没有可用的合格Bean类型:预期匹 ...

  9. Spring Cache 注解详解

    @CacheConfig:在类上面统一定义缓存的名字,方法上面就不用标注了,表示该类所有的方法都是支持缓存的,我们一般不使用该注解,直接通过@Cacheable自己配置缓存集的名字来定义. @Cach ...

最新文章

  1. PanoNet3D:一种3D目标检测方法
  2. java使用url和tns两种方式连接数据库执行存储过程
  3. 科学家从脑电图中解读大脑的运动意图
  4. Eclipse构建路径
  5. AndroidStudio导入httpmime jar编译不通过的解决办法
  6. Appium swipe之屏幕上、下、左、右滑动
  7. 诺德尔-2011-2003-V1新版 ghost安装版
  8. 面向对象的四大特征 封装 继承 多态 抽象
  9. Java System.getProperty()
  10. 30天自制操作系统 定时器
  11. 我对敏捷价值观和原则的理解 --待续
  12. 搏一搏,单车变摩托!华为天才少年耗时四月将自行车强势升级为自动驾驶
  13. SAS: PROC IMPORT简单入门介绍
  14. linux mbr 转 gpt 数据丢吗,不丢失数据 MBR转GPT分区表教程
  15. 任务一:统计基础知识-样本与总体、均值与方差、二项分布、泊松分布
  16. 晶体晶振小结(XTAL与TCXO/VCXO/VC-OCXO等)
  17. 淘宝上卖云控系统靠谱吗?
  18. p图软件pⅰc_P图教程|教你做超火的iMessage图 所需软件:Picsart QQ_修图软件_滤镜_picsart怎么样_纯白色_相册_我超会p图der_摄影_摄影技巧_修图技巧...
  19. JavaScript实现效果——考试倒计时
  20. 头牌知产介绍燃气灶商标注册类别属哪一类?

热门文章

  1. 如何理解处理器、CPU、多处理器、内核、多核?
  2. 面向对象三大特性(多态)
  3. Qt开发经验小技巧合集
  4. latex初学者的经验
  5. java里break的使用方法_java中break,continue,return使用方法
  6. 汽车电子狗的原理 【闲杂篇】
  7. refind两个linux,rEFInd (简体中文)
  8. 什么是期货/股票分仓软件?
  9. CNN对句子分类(tensorflow)
  10. python 遍历列表中的每个元素 for循环 while循环 迭代器