spring: datasource: druid: driver-class-name: com.mysql.jdbc.Driver url: jdbc:mysql://127.0.0.1:3306/myschool username: root password: 123 initial-size: 2 max-active: 4 max-wait: 15000 validation-query: SELECT 'x' #监控页面 stat-view-servlet: login-username: admin login-password: 123 allow: deny: 192.168.1.100 url-pattern: '/druid/*' enabled: true #启用功能 web-stat-filter: exclusions: '*.jpg,*.js,*.jpeg,*.css,*.ico,*.gif,*.png,/druid/*' url-pattern: '/*' enabled: true