Spring Boot 2.0 动态数据源快速启动器 1.3.0 发布

栏目: 软件资讯 · 发布时间: 7年前

内容简介:dynamic-datasource-spring-boot-starter 升级到1.3.0版本,dynamic-datasource-spring-boot-starter  是 Spring Boot 2.0 的动态数据源快速启动器。 项目及文档地址:https://gitee.com/baomidou/dynamic-data...

dynamic-datasource-spring-boot-starter 升级到1.3.0版本,dynamic-datasource-spring-boot-starter  是 Spring Boot 2.0 的动态数据源快速启动器。

项目及文档地址:https://gitee.com/baomidou/dynamic-datasource-spring-boot-starter

demo地址:https://gitee.com/baomidou/dynamic-datasource-example (可直接运行)

1. 本版本对 Druid 的参数进行进一步的支持,主要是 psCache 相关。

2. 另还原了原来通过@Aspect创建切面的方式,对 springAop 源码熟悉的朋友请联系我。

希望同时支持类似 tx 注解和 spel 切面的配置方式。

现支持的参数如下:

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

【声明】文章转载自:开源中国社区 [http://www.oschina.net]


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Pro CSS and HTML Design Patterns

Pro CSS and HTML Design Patterns

Michael Bowers / Apress / April 23, 2007 / $44.99

Design patterns have been used with great success in software programming. They improve productivity, creativity, and efficiency in web design and development, and they reduce code bloat and complexit......一起来看看 《Pro CSS and HTML Design Patterns》 这本书的介绍吧!

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

html转js在线工具
html转js在线工具

html转js在线工具