Spring Boot 2.0 Dynamic Data Source Quick Starter 1.2.0 Released

  

Spring Boot 2.0 Dynamic Data Source Quick Starter 1.2.0 has been released with the following updates:

1. Further support for Druid is provided.

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

2. Changes and abstractions created by internal aspects.

Later plan:

  • Not only supports annotation aspects, but also provides or develops other switching methods.

  • For example, spel is defined and then switched according to the scanned method name, select, find and other walk-through databases, and other walk-through databases.

Guess you like

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