Skip to content
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

装配操作支持多数据源 #323

Open
Createsequence opened this issue Sep 22, 2024 · 0 comments
Open

装配操作支持多数据源 #323

Createsequence opened this issue Sep 22, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Createsequence
Copy link
Collaborator

你的依赖版本与运行环境

  • JDK 版本:请给出目前你所使用的 JDK 版本。
  • Crane4j 版本:请给出你目前所使用的 Crane4j 版本。
  • 相关依赖版本:如果你使用了 starter,则列出 SpringBoot 版本,如果是使用了 Jackson、MybatisPlus 或其他扩展插件,则列出对应的依赖组件版本。

描述你的问题或需求

装配操作支持指定多个数据源容器,当从第一个容器无法获得数据时,按顺序依次尝试从后续几个容器获取,直到取得数据或全部容器都无法取得数据为止。

问题复现代码或需求的示例代码

使用方式如下:

@Assemble(
    container = { "container1", "container2", "container3" },
    prop = "name"
)
private Integer id;
private String name;

=选项式配置由于与数据源高度绑定,因此目前很难做到这样的效果,这部分的功能后续再想想看如何实现。

@Createsequence Createsequence added the enhancement New feature or request label Sep 22, 2024
@Createsequence Createsequence added this to the release 2.10.0 milestone Sep 22, 2024
@Createsequence Createsequence self-assigned this Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant