当前位置:网站首页>Alibaba数据源Druid可视化监控配置
Alibaba数据源Druid可视化监控配置
2022-07-06 11:39:00 【漂泊的猎人】
1、引入依赖的jar文件gav
1-1、druid可视化监控服务启动
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>1.2.11</version>
</dependency>
1-2、数据源druid依赖jar文件gav引入
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.2.4</version>
<scope>compile</scope>
</dependency>
1-3、配置文件属性配置
spring:
datasource:
druid:
web-stat-filter:
exclusions: '*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico'
enabled: true
stat-view-servlet:
url-pattern: /druid/* #允许隐射的访问地址
login-username: admin #自定义druid可视化界面用户名
login-password: ******* #自定义druid可视化界面密码
enabled: true #是否开启druid可视化监控
allow: localhost #允许自己访问druid(访问druid后页面提示 Sorry, you are not permitted to view this page 配置此属性可以解决)
max-active: 20
initial-size: 5
min-idle: 3
max-wait: 3000
time-between-eviction-runs-millis: 100000
filters: stat #druid可是化监控stat:监控统计、log4j:日志记录、wall:防御sql注入(SQL监控必选)
driver-class-name: com.mysql.cj.jdbc.Driver #连接数据库驱动
type: com.alibaba.druid.pool.DruidDataSource #指明数据源类型(默认是com.zaxxer.hikari.HikariDataSource)
边栏推荐
- 【基础架构】Flink/Flink-CDC的部署和配置(MySQL / ES)
- Chic Lang: attributeerror: partially initialized module 'CV2' has no attribute 'GAPI_ wip_ gst_ GStreamerPipe
- Is not a drawable (color or path): the vector graph downloaded externally cannot be called when it is put into mipmap, and the calling error program crashes
- The list of people who passed the fifth phase of personal ability certification assessment was published
- Documents to be used in IC design process
- 系统性详解Redis操作Hash类型数据(带源码分析及测试结果)
- 保证接口数据安全的10种方案
- Take a look at how cabloyjs workflow engine implements activiti boundary events
- Cereals Mall - Distributed Advanced p129~p339 (end)
- LeetCode_双指针_中等_61. 旋转链表
猜你喜欢
谷粒商城--分布式高级篇P129~P339(完结)
Detailed idea and code implementation of infix expression to suffix expression
时钟轮在 RPC 中的应用
MySQL information schema learning (II) -- InnoDB table
Documents to be used in IC design process
Sanmian ant financial successfully got the offer, and has experience in Android development agency recruitment and interview
spark基础-scala
Using clip path to draw irregular graphics
腾讯Android面试必问,10年Android开发经验
LeetCode-1279. 红绿灯路口
随机推荐
Solution of commercial supply chain management platform for packaging industry: layout smart supply system and digitally integrate the supply chain of packaging industry
CF960G - Bandit Blues(第一类斯特林数+OGF)
Learn to explore - use pseudo elements to clear the high collapse caused by floating elements
121. 买卖股票的最佳时机
面试突击63:MySQL 中如何去重?
How can my Haskell program or library find its version number- How can my Haskell program or library find its version number?
map的使用(列表的数据赋值到表单,json逗号隔开显示赋值)
Simple application of VBA script in Excel
打家劫舍III[后序遍历与回溯+动态规划]
PMP practice once a day | don't get lost in the exam -7.6
社招面试心得,2022最新Android高频精选面试题分享
Mysql Information Schema 學習(一)--通用錶
时钟轮在 RPC 中的应用
Vmware虚拟机无法打开内核设备“\\.\Global\vmx86“的解决方法
[玩转Linux] [Docker] MySQL安装和配置
LeetCode-1279. 红绿灯路口
Spark foundation -scala
LeetCode_ Gray code_ Medium_ 89. Gray code
How to access localhost:8000 by mobile phone
深入分析,Android面试真题解析火爆全网