!8 FIX: spring-boot 3.X 访问监控页面 报404异常

Merge pull request !8 from lordk/druid-update
This commit is contained in:
吕金泽 2023-12-02 01:30:30 +00:00 committed by Gitee
commit 745dd77a5f
2 changed files with 3 additions and 2 deletions

View File

@ -18,7 +18,7 @@
<properties>
<java.version>17</java.version>
<magic-api.version>2.1.1</magic-api.version>
<druid.version>1.2.16</druid.version>
<druid.version>1.2.20</druid.version>
<hutool-all.version>5.8.15</hutool-all.version>
<sa-token.version>1.35.0.RC</sa-token.version>
<poi.version>4.1.2</poi.version>
@ -46,7 +46,7 @@
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<artifactId>druid-spring-boot-3-starter</artifactId>
<version>${druid.version}</version>
</dependency>
<dependency>

View File

@ -46,6 +46,7 @@ spring:
connect-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
# 配置监控服务器
stat-view-servlet:
enabled: true
login-username: admin
login-password: 123456
reset-enable: false