当前位置:网站首页>Alibaba data source Druid visual monitoring configuration
Alibaba data source Druid visual monitoring configuration
2022-07-06 19:40:00 【Wandering hunter】
1、 Introduce dependent jar file gav
1-1、druid Visual monitoring service start
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>1.2.11</version>
</dependency>
1-2、 data source druid rely on jar file gav introduce
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.2.4</version>
<scope>compile</scope>
</dependency>
1-3、 Configuration file attribute configuration
spring:
datasource:
druid:
web-stat-filter:
exclusions: '*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico'
enabled: true
stat-view-servlet:
url-pattern: /druid/* # Allow implicit access addresses
login-username: admin # Customize druid User name of visual interface
login-password: ******* # Customize druid Visual interface password
enabled: true # Open or not druid Visual monitoring
allow: localhost # Allow yourself access druid( visit druid Prompt on the back page Sorry, you are not permitted to view this page Configuring this property can solve )
max-active: 20
initial-size: 5
min-idle: 3
max-wait: 3000
time-between-eviction-runs-millis: 100000
filters: stat #druid But chemical monitoring stat: Monitoring statistics 、log4j: logging 、wall: defense sql Inject (SQL Monitoring required )
driver-class-name: com.mysql.cj.jdbc.Driver # Connect to the database driver
type: com.alibaba.druid.pool.DruidDataSource # Indicate the data source type ( The default is com.zaxxer.hikari.HikariDataSource)
边栏推荐
- 时钟轮在 RPC 中的应用
- Leetcode 30. Concatenate substrings of all words
- usb host 驱动 - UVC 掉包
- Elastic search indexes are often deleted [closed] - elastic search indexes gets deleted frequently [closed]
- Problems encountered in using RT thread component fish
- Translation D28 (with AC code POJ 26:the nearest number)
- 快速幂模板求逆元,逆元的作用以及例题【第20届上海大学程序设计联赛夏季赛】排列计数
- Dom 操作
- Understand yolov1 Part II non maximum suppression (NMS) in prediction stage
- 社招面试心得,2022最新Android高频精选面试题分享
猜你喜欢

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

CCNP Part 11 BGP (III) (essence)

JDBC details

黑馬--Redis篇

Blue Bridge Cup microbial proliferation C language

Carte de réflexion + code source + notes + projet, saut d'octets + jd + 360 + tri des questions d'entrevue Netease

Understand yolov1 Part II non maximum suppression (NMS) in prediction stage

Phoenix Architecture 3 - transaction processing

Mysql Information Schema 學習(一)--通用錶

【翻译】云原生观察能力微调查。普罗米修斯引领潮流,但要了解系统的健康状况仍有障碍...
随机推荐
IC设计流程中需要使用到的文件
Dom 操作
Tensorflow2.0 self defined training method to solve function coefficients
Cf960g - bandit Blues (type I Stirling number +ogf)
如何自定义动漫头像?这6个免费精品在线卡通头像生成器,看一眼就怦然心动!
USB host driver - UVC swap
map的使用(列表的数据赋值到表单,json逗号隔开显示赋值)
Teach you to learn JS prototype and prototype chain hand in hand, a tutorial that monkeys can understand
学习探索-无缝轮播图
LeetCode_格雷编码_中等_89.格雷编码
[translation] Digital insider. Selection process of kubecon + cloudnativecon in Europe in 2022
1805. Number of different integers in the string
凤凰架构2——访问远程服务
Druid database connection pool details
深度剖析原理,看完这一篇就够了
DaGAN论文解读
Hudi vs Delta vs Iceberg
PMP practice once a day | don't get lost in the exam -7.6
short i =1; I=i+1 and short i=1; Difference of i+=1
Learn to explore - use pseudo elements to clear the high collapse caused by floating elements