|
@@ -21,6 +21,7 @@ import javassist.NotFoundException;
|
|
import lombok.NonNull;
|
|
import lombok.NonNull;
|
|
import org.apache.ibatis.parsing.XNode;
|
|
import org.apache.ibatis.parsing.XNode;
|
|
import org.apache.ibatis.session.Configuration;
|
|
import org.apache.ibatis.session.Configuration;
|
|
|
|
+import org.apache.ibatis.type.UnknownTypeHandler;
|
|
|
|
|
|
/**
|
|
/**
|
|
* Mybatis配置类
|
|
* Mybatis配置类
|
|
@@ -134,11 +135,11 @@ public abstract class MybatisConfigurer {
|
|
"this.resolveTypeHandler();\n" +
|
|
"this.resolveTypeHandler();\n" +
|
|
"if (this.parameterMapping.typeHandler == null && this.parameterMapping.javaType != null " +
|
|
"if (this.parameterMapping.typeHandler == null && this.parameterMapping.javaType != null " +
|
|
"&& !%s.isTypeHandlerRegistered(this.parameterMapping.javaType)) {\n" +
|
|
"&& !%s.isTypeHandlerRegistered(this.parameterMapping.javaType)) {\n" +
|
|
- "this.parameterMapping.typeHandler = %s.getUnknownTypeHandler(this.parameterMapping.configuration);\n" +
|
|
|
|
|
|
+ "this.parameterMapping.typeHandler = new %s(this.parameterMapping.configuration);\n" +
|
|
"}\n " +
|
|
"}\n " +
|
|
"this.validate();\n" +
|
|
"this.validate();\n" +
|
|
"return this.parameterMapping;\n" +
|
|
"return this.parameterMapping;\n" +
|
|
- "}", DatabaseContextHolder.class.getName(), DatabaseContextHolder.class.getName()));
|
|
|
|
|
|
+ "}", DatabaseContextHolder.class.getName(), UnknownTypeHandler.class.getName()));
|
|
inner.toClass();
|
|
inner.toClass();
|
|
clazz.toClass();
|
|
clazz.toClass();
|
|
}
|
|
}
|