Spring Boot 2.0 Dynamic Data Source Quick Starter 1.3.0 Released

  

dynamic-datasource-spring-boot-starter is upgraded to version 1.3.0, dynamic-datasource-spring-boot-starter is the dynamic data source quick starter for Spring Boot 2.0.

Project and document address: https://gitee.com/baomidou/dynamic-datasource-spring-boot-starter

Demo address: https://gitee.com/baomidou/dynamic-datasource-example (can be run directly)

1. This version further supports Druid parameters, mainly related to psCache.

2. The original method of creating aspects through @Aspect has been restored. If you are familiar with the source code of springAop, please contact me.

Hope to support configuration methods like tx annotations and spel aspects at the same time.

The currently supported parameters are as follows:

spring:
  datasource:
    druid:
      stat-view-servlet:
        loginUsername: admin
        loginPassword: 123456
    dynamic:
      master:
        username: root
        password: 123456
        driver-class-name: com.mysql.jdbc.Driver
        url: jdbc:mysql://47.100.20.186:3307/dynamic?characterEncoding=utf8&useSSL=false
        druid:
          initial-size: 3
          max-active: 8
          min-idle: 2
          max-wait: -1
          min-evictable-idle-time-millis: 30000
          max-evictable-idle-time-millis: 30000
          time-between-eviction-runs-millis: 0
          validation-query: select 1
          validation-query-timeout: -1
          test-on-borrow: false
          test-on-return: false
          test-while-idle: true
          pool-prepared-statements: true
          max-open-prepared-statements: 100
          filters: stat,wall
          share-prepared-statements: true

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325944091&siteId=291194637