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
private static final ThreadLocal CONTEXT_HOLDER = ThreadLocal.withInitial(DataSourceKey.master);
java: 无法将类 java.lang.ThreadLocal中的方法 withInitial应用到给定类型; 需要: java.util.function.Supplier<? extends S> 找到: org.poem.enumeration.DataSourceKey 原因: 无法推断类型变量 S (参数不匹配; org.poem.enumeration.DataSourceKey无法转换为java.util.function.Supplier<? extends S>)
报这个错
The text was updated successfully, but these errors were encountered:
You can reference DynamicDataSourceContextHolder.java#L27
Sorry, something went wrong.
No branches or pull requests
private static final ThreadLocal CONTEXT_HOLDER = ThreadLocal.withInitial(DataSourceKey.master);
java: 无法将类 java.lang.ThreadLocal中的方法 withInitial应用到给定类型;
需要: java.util.function.Supplier<? extends S>
找到: org.poem.enumeration.DataSourceKey
原因: 无法推断类型变量 S
(参数不匹配; org.poem.enumeration.DataSourceKey无法转换为java.util.function.Supplier<? extends S>)
报这个错
The text was updated successfully, but these errors were encountered: