springboot集成druid,sql监控无效果,解决方案
druid
阿里云计算平台DataWorks(https://help.aliyun.com/document_detail/137663.html) 团队出品,为监控而生的数据库连接池
项目地址:https://gitcode.com/gh_mirrors/druid/druid

·
项目中引入的依赖:
问题分析:
1.配置文件中的druid的配置参数信息格式是否有错误,如下,是否全都是spring.datasource.*
如果格式有错误,那么 new DruidDataSource()创建成功也是有问题的
2.配置统计拦截的filters是否写的正确,我就踩了这个坑,,花了两个小时才发现,我springboot项目是用的logback日志;切记切记,你的项目用的那个日志框架,下图红色框那就填哪种日志,都是复制粘贴惹的祸,流泪。。。。
3.大功告成




阿里云计算平台DataWorks(https://help.aliyun.com/document_detail/137663.html) 团队出品,为监控而生的数据库连接池
最近提交(Master分支:18 天前 )
a71fa6ad - 4 天前
0b375e47 - 11 天前
更多推荐
所有评论(0)