修正类型.
This commit is contained in:
parent
4b49de40d8
commit
a00d02a733
@ -222,7 +222,7 @@ public class MybatisPlusAutoConfiguration implements InitializingBean {
|
|||||||
* @param <T> 泛型
|
* @param <T> 泛型
|
||||||
*/
|
*/
|
||||||
private <T> void getBeanThen(Class<T> clazz, Consumer<T> consumer) {
|
private <T> void getBeanThen(Class<T> clazz, Consumer<T> consumer) {
|
||||||
if (this.applicationContext.getBeanNamesForType(ISqlInjector.class, false, false).length > 0) {
|
if (this.applicationContext.getBeanNamesForType(clazz, false, false).length > 0) {
|
||||||
consumer.accept(this.applicationContext.getBean(clazz));
|
consumer.accept(this.applicationContext.getBean(clazz));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user