Skip to content

Commit

Permalink
Update README.md (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhi13man committed Dec 9, 2023
1 parent 257e580 commit 51b92c8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Expand Up @@ -96,12 +96,14 @@ for configuring multi-data source configurations for a service. Let's break down
the `dataSourceConfigs` attribute of `@EnableMultiDataSourceConfig`.

- It has the following attributes:
- `dataSourceName`: The name of the data source. It is used to generate the date source
- `dataSourceName`: The name of the data source. It is used to generate the data source
beans and to name the generated classes, packages, and property paths for the data
source properties.
- `isPrimary`: Whether the data source is the primary data source. If this is set to
`true`, the generated beans for this data source will be annotated with `@Primary`. Hence
this should be set to `true` for only one data source.
this should be set to `true` for only one data source. The primary data source will be able
to access every repository other than the repositories generated for the secondary data
sources.
- `dataSourceClassPropertiesPath`: The path of the data source class properties in the
application properties. Eg. `spring.datasource.hikari` for Hikari data sources.
- `hibernateBeanContainerPropertyPath`: The path of the Hibernate bean container property in
Expand Down

0 comments on commit 51b92c8

Please sign in to comment.