当前位置:网站首页>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)
边栏推荐
- 【翻译】云原生观察能力微调查。普罗米修斯引领潮流,但要了解系统的健康状况仍有障碍...
- IC设计流程中需要使用到的文件
- 学习探索-无缝轮播图
- DOM operation
- C # use Marshall to manually create unmanaged memory in the heap and use
- VMware virtual machine cannot open the kernel device "\.\global\vmx86"
- 谷粒商城--分布式高级篇P129~P339(完结)
- 如何自定义动漫头像?这6个免费精品在线卡通头像生成器,看一眼就怦然心动!
- Live broadcast today | the 2022 Hongji ecological partnership conference of "Renji collaboration has come" is ready to go
- 数学知识——高斯消元(初等行变换解方程组)代码实现
猜你喜欢
Systematic and detailed explanation of redis operation hash type data (with source code analysis and test results)
A popular explanation will help you get started
系统性详解Redis操作Hash类型数据(带源码分析及测试结果)
社招面试心得,2022最新Android高频精选面试题分享
Hudi vs Delta vs Iceberg
A method of removing text blur based on pixel repair
Druid 数据库连接池 详解
零基础入门PolarDB-X:搭建高可用系统并联动数据大屏
企业精益管理体系介绍
PMP practice once a day | don't get lost in the exam -7.6
随机推荐
全套教学资料,阿里快手拼多多等7家大厂Android面试真题
[translation] linkerd's adoption rate in Europe and North America exceeded istio, with an increase of 118% in 2021.
Understand yolov1 Part II non maximum suppression (NMS) in prediction stage
A popular explanation will help you get started
【翻译】数字内幕。KubeCon + CloudNativeCon在2022年欧洲的选择过程
1805. Number of different integers in the string
LeetCode_双指针_中等_61. 旋转链表
Leetcode topic [array] - 119 Yang Hui triangle II
In 50W, what have I done right?
Li Kou 101: symmetric binary tree
Vmware虚拟机无法打开内核设备“\\.\Global\vmx86“的解决方法
Take a look at how cabloyjs workflow engine implements activiti boundary events
Unbalance balance (dynamic programming, DP)
Problems encountered in using RT thread component fish
Excel 中VBA脚本的简单应用
腾讯Android面试必问,10年Android开发经验
LeetCode-1279. 红绿灯路口
It's super detailed in history. It's too late for you to read this information if you want to find a job
如何自定义动漫头像?这6个免费精品在线卡通头像生成器,看一眼就怦然心动!
[translation] a GPU approach to particle physics