当前位置:网站首页>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)
边栏推荐
- CCNP Part 11 BGP (III) (essence)
- 手把手教你学会js的原型与原型链,猴子都能看懂的教程
- 中缀表达式转后缀表达式详细思路及代码实现
- 从sparse.csc.csr_matrix生成邻接矩阵
- Mathematical knowledge -- code implementation of Gaussian elimination (elementary line transformation to solve equations)
- [translation] linkerd's adoption rate in Europe and North America exceeded istio, with an increase of 118% in 2021.
- MRO industrial products enterprise procurement system: how to refine procurement collaborative management? Industrial products enterprises that want to upgrade must see!
- LeetCode_双指针_中等_61. 旋转链表
- 接雨水问题解析
- Translation D28 (with AC code POJ 26:the nearest number)
猜你喜欢
Detailed idea and code implementation of infix expression to suffix expression
MySQL information schema learning (II) -- InnoDB table
Mysql Information Schema 学习(一)--通用表
Spark foundation -scala
Looting iii[post sequence traversal and backtracking + dynamic planning]
CCNP Part 11 BGP (III) (essence)
Vmware虚拟机无法打开内核设备“\\.\Global\vmx86“的解决方法
Black Horse - - Redis Chapter
Teach you to learn JS prototype and prototype chain hand in hand, a tutorial that monkeys can understand
Application of clock wheel in RPC
随机推荐
JDBC details
Mysql Information Schema 学习(二)--Innodb表
通俗的讲解,带你入门协程
MySQL information schema learning (II) -- InnoDB table
DOM operation
short i =1; i=i+1与short i=1; i+=1的区别
MRO industrial products enterprise procurement system: how to refine procurement collaborative management? Industrial products enterprises that want to upgrade must see!
CCNP Part 11 BGP (III) (essence)
Druid 数据库连接池 详解
The slave i/o thread stops because master and slave have equal MySQL serv
手把手教你学会js的原型与原型链,猴子都能看懂的教程
USB host driver - UVC swap
Computer network: sorting out common network interview questions (I)
A full set of teaching materials, real questions of Android interview of 7 major manufacturers including Alibaba Kwai pinduoduo
Help improve the professional quality of safety talents | the first stage of personal ability certification and assessment has been successfully completed!
Teach you to learn JS prototype and prototype chain hand in hand, a tutorial that monkeys can understand
Reflection and illegalaccessexception exception during application
Take a look at how cabloyjs workflow engine implements activiti boundary events
Tensorflow and torch code verify whether CUDA is successfully installed
Blue Bridge Cup microbial proliferation C language