-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Provides a way for configuring after the datasource is initialized #28795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for the suggestion. Unfortunately, I don't understand the benefit that a customizer callback would bring. Can you please provide an example of what you would like to be able to do and explain why it isn't possible at the moment? |
here is the example https://github.com/liaozan/datasource-customizer-suggestion.git |
example updated |
Thanks for the example. You can already configure the Have you considered using this approach rather than a bean post-processor or you suggested customizer callback? As things stand, I can't see much, if any, benefit of the customizer callback over what's already supported. |
If I want to provide a unified approach instead of do it in every service ,how to do it? |
A starter can either use a bean post-processor as I suggested above or it can provide the properties for different types of I'll flag this for team attention to see if the rest of the team feel that a customizer callback is warranted here. |
I think there's a danger that we could over do the |
Well, I 've implemented it with a |
In the current version, the datasource can only be initialized through configuration, and the properties cannot be modified after initialization.
Although it is possible to modify datasource properties through BeanPostProcessor, do you want to add a more convenient method, such as Customizer callback?
The text was updated successfully, but these errors were encountered: