Skip to content

namjug-kim/multi-datasource-spring-boot-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multi Datasource Spring boot starter

Table of Contents

Overview

Getting started

Configuration

The following default properties can be configured via properties file:

multi:
  database:
    jpa:
      enable: true
      database-platform: H2
      packages-to-scan: com.njkim.example.database
      hibernate:
        jdbc-batch-size: 1
        dialect: org.hibernate.dialect.H2Dialect
        format-sql: true
        show-sql: true
        ddl-auto: VALIDATE
    datasource:
      enable: true
      data-sources:
      - name: default
        master:
          jdbc-url: jdbc:h2:mem:master;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;IGNORECASE=TRUE
          username: sa
          password: sa
          maximumPoolSize: 13
          minimumIdle: 3
          maxLifetime: 900000
          connectionTimeout: 10000
          connectionTestQuery: SELECT 1
      - name: second
        master:
          jdbc-url: jdbc:h2:mem:second;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;IGNORECASE=TRUE
          username: sa
          password: sa
          maximumPoolSize: 13
          minimumIdle: 3
          maxLifetime: 900000
          connectionTimeout: 10000
          connectionTestQuery: SELECT 1

    

License

Multi Datasource Spring boot starter is licensed under the MIT License. See LICENSE for details.

About

multi-datasource-spring-boot-starter

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages