forked from spring-projects/spring-boot
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bind datasource settings to specific namespaces
Previously, all datasource-related settings were bound to `spring.datasource`, including datasource-specific settings. Update `DataSourceBuilder` to bind to an arbitrary namespace and provide a default one for known types (i.e. the tomcat implementation now binds to `spring.datasource.tomcat`). Since `spring.datasource` is used for common settings, it is still bound by default as well which makes this change backward compatible. Users were redirected to the use of `ConfigurationProperties` to configure extra datasource instances. This is still valid but they now can also use `DataSourceBuilder` directly to achieve the same effect and still retain common settings if need to be. Closes spring-projectsgh-2183
- Loading branch information
Showing
8 changed files
with
191 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.