当前位置:网站首页>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)
边栏推荐
- 【翻译】云原生观察能力微调查。普罗米修斯引领潮流,但要了解系统的健康状况仍有障碍...
- 黑馬--Redis篇
- Elastic search indexes are often deleted [closed] - elastic search indexes gets deleted frequently [closed]
- 如何自定义动漫头像?这6个免费精品在线卡通头像生成器,看一眼就怦然心动!
- PMP practice once a day | don't get lost in the exam -7.6
- 中缀表达式转后缀表达式详细思路及代码实现
- C language daily practice - day 22: Zero foundation learning dynamic planning
- [translation] Digital insider. Selection process of kubecon + cloudnativecon in Europe in 2022
- 全套教学资料,阿里快手拼多多等7家大厂Android面试真题
- 1805. 字符串中不同整数的数目
猜你喜欢

Reflection and illegalaccessexception exception during application

An error occurs when installing MySQL: could not create or access the registry key needed for the

C language daily practice - day 22: Zero foundation learning dynamic planning

CCNP Part 11 BGP (III) (essence)

Leetcode 30. Concatenate substrings of all words
受益匪浅,安卓面试问题

Blue Bridge Cup microbial proliferation C language

Problems encountered in using RT thread component fish

Phoenix Architecture 3 - transaction processing
In depth analysis, Android interview real problem analysis is popular all over the network
随机推荐
MySQL information schema learning (II) -- InnoDB table
Solution of intelligent management platform for suppliers in hardware and electromechanical industry: optimize supply chain management and drive enterprise performance growth
Test Li hi
zabbix 代理服务器 与 zabbix-snmp 监控
[pytorch] yolov5 train your own data set
Dark horse -- redis
三面蚂蚁金服成功拿到offer,Android开发社招面试经验
A full set of teaching materials, real questions of Android interview of 7 major manufacturers including Alibaba Kwai pinduoduo
short i =1; I=i+1 and short i=1; Difference of i+=1
Yyds dry goods inventory leetcode question set 751 - 760
MySql必知必会学习
思维导图+源代码+笔记+项目,字节跳动+京东+360+网易面试题整理
[玩转Linux] [Docker] MySQL安装和配置
Intelligent supply chain management system solution for hardware and electromechanical industry: digital intelligent supply chain "creates new blood" for traditional industries
从sparse.csc.csr_matrix生成邻接矩阵
Spark foundation -scala
MySQL information Schema Learning (i) - - General table
【基础架构】Flink/Flink-CDC的部署和配置(MySQL / ES)
冒烟测试怎么做
黑馬--Redis篇