2021
09-10
09-10
springboot项目中实现访问druid内置监控页面
springboot访问druid内置监控页面1、首先加入druid依赖<dependency><groupId>com.alibaba</groupId><artifactId>druid-spring-boot-starter</artifactId><version>1.1.9</version></dependency>2、设置配置文件:#数据库访问配置#主数据源,默认的spring.datasource.type=com.alibaba.druid.pool.DruidDataSourcespring.datasource.driver-class-name=com.mysql.jdbc.Driverspring.datasource.url=jdbc:mysql://loc...
继续阅读 >