application.yml配置文件加上这一句,否则只显示主数据源监控: spring: datasource: type: com.alibaba.druid.pool.DruidDataSource