spring.datasource.druid.dynamicUrl=jdbc:mysql://localhost:3306/${schema} #spring.datasource.druid.url=jdbc:mysql://127.0.0.1:3306/db_encryptmoneypacket?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8 #spring.datasource.druid.username=root #spring.datasource.druid.password=111111 spring.datasource.druid.url=jdbc:mysql://49.232.6.143/tall?useUnicode=true&characterEncoding=UTF-8 spring.datasource.druid.username=root spring.datasource.druid.password=po3OynBO[M3579p6L7)o spring.datasource.druid.driverClassName=com.mysql.jdbc.Driver # 连接池的配置信息 # 初始化大小,最小,最大 spring.datasource.druid.initialSize=5 spring.datasource.druid.minIdle=5 spring.datasource.druid.maxActive=20 # 配置获取连接等待超时的时间 spring.datasource.druid.maxWait=60000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 spring.datasource.druid.timeBetweenEvictionRunsMillis=60000 # 配置一个连接在池中最小生存的时间,单位是毫秒 spring.datasource.druid.minEvictableIdleTimeMillis=300000 spring.datasource.druid.validationQuery=SELECT 1 FROM DUAL spring.datasource.druid.testWhileIdle=true spring.datasource.druid.testOnBorrow=false spring.datasource.druid.testOnReturn=false # 打开PSCache,并且指定每个连接上PSCache的大小 spring.datasource.druid.poolPreparedStatements=true spring.datasource.druid.maxPoolPreparedStatementPerConnectionSize=20 # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙 #spring.datasource.druid.filters=stat,wall,log4j spring.datasource.druid.filters=stat,wall # 通过connectProperties属性来打开mergeSql功能;慢SQL记录 spring.datasource.druid.connectionProperties=druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000 # Druid访问信息 spring.datasource.druid.servletName=druidServlet spring.datasource.druid.servletUrlMapping=/druid/* spring.datasource.druid.servletLoginUsername=druid spring.datasource.druid.servletLoginPassword=111111 spring.datasource.druid.servletLogSlowSql=true spring.datasource.druid.servletResetEnable=true spring.datasource.druid.filterName=druidFilter spring.datasource.druid.filterUrlPattern=/* spring.datasource.druid.filterExclusions=*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/* spring.datasource.druid.filterProfileEnable=true