当前位置:网站首页>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)
边栏推荐
- 主从搭建报错:The slave I/O thread stops because master and slave have equal MySQL serv
- 中缀表达式转后缀表达式详细思路及代码实现
- Solution of intelligent management platform for suppliers in hardware and electromechanical industry: optimize supply chain management and drive enterprise performance growth
- Systematic and detailed explanation of redis operation hash type data (with source code analysis and test results)
- 深入分析,Android面试真题解析火爆全网
- 系统性详解Redis操作Hash类型数据(带源码分析及测试结果)
- Learning and Exploration - function anti shake
- MySQL must know and learn
- 【计算情与思】扫地僧、打字员、信息恐慌与奥本海默
- Lick the dog until the last one has nothing (simple DP)
猜你喜欢

潇洒郎: AttributeError: partially initialized module ‘cv2‘ has no attribute ‘gapi_wip_gst_GStreamerPipe

A method of removing text blur based on pixel repair

力扣101题:对称二叉树

深度剖析原理,看完这一篇就够了

Detailed idea and code implementation of infix expression to suffix expression

VMware virtual machine cannot open the kernel device "\.\global\vmx86"

The list of people who passed the fifth phase of personal ability certification assessment was published

Understand yolov1 Part II non maximum suppression (NMS) in prediction stage
![[translation] linkerd's adoption rate in Europe and North America exceeded istio, with an increase of 118% in 2021.](/img/09/106adc222c06cbd2f4f66cf475cce2.jpg)
[translation] linkerd's adoption rate in Europe and North America exceeded istio, with an increase of 118% in 2021.

LeetCode-1279. Traffic light intersection
随机推荐
DOM operation
LeetCode_格雷编码_中等_89.格雷编码
VMware virtual machine cannot open the kernel device "\.\global\vmx86"
打家劫舍III[后序遍历与回溯+动态规划]
121. The best time to buy and sell stocks
腾讯Android面试必问,10年Android开发经验
接雨水问题解析
【翻译】数字内幕。KubeCon + CloudNativeCon在2022年欧洲的选择过程
LeetCode_双指针_中等_61. 旋转链表
Hudi vs Delta vs Iceberg
Help improve the professional quality of safety talents | the first stage of personal ability certification and assessment has been successfully completed!
zabbix 代理服务器 与 zabbix-snmp 监控
The list of people who passed the fifth phase of personal ability certification assessment was published
map的使用(列表的数据赋值到表单,json逗号隔开显示赋值)
An error occurs when installing MySQL: could not create or access the registry key needed for the
系统性详解Redis操作Hash类型数据(带源码分析及测试结果)
C # - realize serialization with Marshall class
Dark horse -- redis
Teach you to learn JS prototype and prototype chain hand in hand, a tutorial that monkeys can understand
Countdown 2 days | live broadcast preview of Tencent cloud message queue data import platform