mybatis 返回null 及 参数说明
'org.mybatis:mybatis:3.2.8'
(会与 'org.mybatis:mybatis:3.1.1',com.mybank.tools.dialect.PaginationInterceptor内
MetaObject metaStatementHandler = MetaObject.forObject(statementHandler)冲突 ,
改为
private static final ObjectFactory DEFAULT_OBJECT_FACTORY = new DefaultObjectFactory();
private static final ObjectWrapperFactory DEFAULT_OBJECT_WRAPPER_FACTORY = new DefaultObjectWrapperFactory();
MetaObject metaStatementHandler = MetaObject.forObject(statementHandler,DEFAULT_OBJECT_FACTORY,DEFAULT_OBJECT_WRAPPER_FACTORY);
)
mybatis-config.xml-->
<settings>
<setting name="callSettersOnNulls" value="true" /><3.1.1不存在此设置,3.2.8存在>
</settings>
参数详见:
http://mybatis.github.io/mybatis-3/zh/configuration.html
project:mybank-gateway