Skip to content

WengShengyuan/SpringBootMultipleDataSource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpringBootMultipleDataSource

SpringBoot application that support two Postgres datasource

  • use application.properties file to configure data sources.
  • use DataSourceConfig bean to initialize both datasources.
  • each datasource has it's own entitymanager and transaction manager.
  • API demostrats usage of each datasource.
  • demo contain situations as below: ** table_one only belongs to datasource one. ** table_two only belongs to datasource two. ** table_three belongs to datasource one and two. and can be operated individually.

About

springboot application that connnects to multiple datasource.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published