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
从数据库读取商户信息,删除yaml中全部商户的配置时报错
The text was updated successfully, but these errors were encountered:
enhance: 增加抽象接口WechatTenantService负责从配置文件或者其它数据源检索租户配置信息,提供默认实现InMemo…
6534d4c
…ryWechatTenantService(可被覆盖) Closes #88
以下功能会在1.0.16版本后实装
public interface WechatTenantService { Set<WechatMetaBean> getAllTenants(); }
实现上述接口并注入Spring IoC 即可达到从其它数据源加载配置的目的,例如:
@Configuration(proxyBeanMethods = false) public class DataSourceWechatTenantServiceConfiguration { // DataSourceWechatTenantService是WechatTenantService的实现 @Bean public WechatTenantService wechatTenantService(WechatDataSourceService datasource) { return new DataSourceWechatTenantService(datasource); } }
Sorry, something went wrong.
刷新参考 spring applicationcontext 的刷新机制 用 holder来 getBean
NotFound403
No branches or pull requests
从数据库读取商户信息,删除yaml中全部商户的配置时报错
The text was updated successfully, but these errors were encountered: