当前位置:网站首页>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)
边栏推荐
- CPU负载很低,loadavg很高处理方法
- [translation] Digital insider. Selection process of kubecon + cloudnativecon in Europe in 2022
- 学习探索-函数防抖
- 【翻译】Linkerd在欧洲和北美的采用率超过了Istio,2021年增长118%。
- Druid 数据库连接池 详解
- ZABBIX proxy server and ZABBIX SNMP monitoring
- It's super detailed in history. It's too late for you to read this information if you want to find a job
- 社招面试心得,2022最新Android高频精选面试题分享
- Use of map (the data of the list is assigned to the form, and the JSON comma separated display assignment)
- GCC [7] - compilation checks the declaration of functions, and link checks the definition bugs of functions
猜你喜欢
In depth analysis, Android interview real problem analysis is popular all over the network

手把手教你学会js的原型与原型链,猴子都能看懂的教程

Phoenix Architecture 3 - transaction processing

社招面试心得,2022最新Android高频精选面试题分享

Hudi vs Delta vs Iceberg

Solution of intelligent management platform for suppliers in hardware and electromechanical industry: optimize supply chain management and drive enterprise performance growth

MySQL information Schema Learning (i) - - General table

Mind map + source code + Notes + project, ByteDance + JD +360+ Netease interview question sorting

Documents to be used in IC design process

潇洒郎: 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
LeetCode_ Gray code_ Medium_ 89. Gray code
The list of people who passed the fifth phase of personal ability certification assessment was published
350. Intersection of two arrays II
spark基础-scala
Hudi vs Delta vs Iceberg
Chic Lang: attributeerror: partially initialized module 'CV2' has no attribute 'GAPI_ wip_ gst_ GStreamerPipe
[translation] micro survey of cloud native observation ability. Prometheus leads the trend, but there are still obstacles to understanding the health of the system
Documents to be used in IC design process
[pytorch] yolov5 train your own data set
Druid 数据库连接池 详解
Vmware虚拟机无法打开内核设备“\\.\Global\vmx86“的解决方法
Use of map (the data of the list is assigned to the form, and the JSON comma separated display assignment)
A popular explanation will help you get started
Yyds dry goods inventory leetcode question set 751 - 760
About image reading and processing, etc
From spark csc. csr_ Matrix generate adjacency matrix
三面蚂蚁金服成功拿到offer,Android开发社招面试经验
How to do smoke test
Mysql Information Schema 学习(二)--Innodb表