We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
目前在 Spring 环境中,要注册一个数据源容器的方法只有两种:
在新的版本中,希望提供一个介于两者之间的方案,即用户实现 AutoContainerRegistrar 接口创建一个用于注册容器特殊 Bean,它的使用应当类似:
public class ExampleAutoContainerRegistrar implements AutoContainerRegistrar { public Collection<Container<?>> getContainers() { // 返回要注册的容器列表 } }
或:
public class ExampleAutoContainerRegistrar implements AutoContainerRegistrar { public void doRegister(ContainerManager manager) { // 手动向 manager 进行注册 } }
相比起 ContainerProvider,它使用起来更加简单,但是相比起手动注册或将容器声明为 Bean,又具备更好的灵活性。
The text was updated successfully, but these errors were encountered:
please assign me,thanks~
Sorry, something went wrong.
heliang666s
No branches or pull requests
目前在 Spring 环境中,要注册一个数据源容器的方法只有两种:
在新的版本中,希望提供一个介于两者之间的方案,即用户实现 AutoContainerRegistrar 接口创建一个用于注册容器特殊 Bean,它的使用应当类似:
或:
相比起 ContainerProvider,它使用起来更加简单,但是相比起手动注册或将容器声明为 Bean,又具备更好的灵活性。
The text was updated successfully, but these errors were encountered: