当前位置:网站首页>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)
边栏推荐
- VMware virtual machine cannot open the kernel device "\.\global\vmx86"
- DOM operation
- 今日直播 | “人玑协同 未来已来”2022弘玑生态伙伴大会蓄势待发
- 潇洒郎: AttributeError: partially initialized module ‘cv2‘ has no attribute ‘gapi_wip_gst_GStreamerPipe
- Druid database connection pool details
- It's super detailed in history. It's too late for you to read this information if you want to find a job
- Leetcode 30. Concatenate substrings of all words
- 零基础入门PolarDB-X:搭建高可用系统并联动数据大屏
- 【翻译】Linkerd在欧洲和北美的采用率超过了Istio,2021年增长118%。
- 思维导图+源代码+笔记+项目,字节跳动+京东+360+网易面试题整理
猜你喜欢
Mysql Information Schema 学习(二)--Innodb表
思維導圖+源代碼+筆記+項目,字節跳動+京東+360+網易面試題整理
How to customize animation avatars? These six free online cartoon avatar generators are exciting at a glance!
Hudi vs Delta vs Iceberg
力扣101题:对称二叉树
深入分析,Android面试真题解析火爆全网
Li Kou 101: symmetric binary tree
In depth analysis, Android interview real problem analysis is popular all over the network
Mysql Information Schema 學習(一)--通用錶
[translation] a GPU approach to particle physics
随机推荐
How to type multiple spaces when editing CSDN articles
Test Li hi
Leetcode topic [array] - 119 Yang Hui triangle II
Systematic and detailed explanation of redis operation hash type data (with source code analysis and test results)
Swiftui game source code Encyclopedia of Snake game based on geometryreader and preference
swagger2报错Illegal DefaultValue null for parameter type integer
Mysql Information Schema 学习(一)--通用表
Interview assault 63: how to remove duplication in MySQL?
学习探索-无缝轮播图
手把手教你学会js的原型与原型链,猴子都能看懂的教程
利用 clip-path 绘制不规则的图形
Tensorflow2.0 self defined training method to solve function coefficients
通俗的讲解,带你入门协程
short i =1; i=i+1与short i=1; i+=1的区别
Learning and Exploration - function anti shake
时钟轮在 RPC 中的应用
MySQL information schema learning (II) -- InnoDB table
Excel 中VBA脚本的简单应用
1805. 字符串中不同整数的数目
Benefit a lot, Android interview questions