@@ -0,0 +1,763 @@
+package com.freetmp.mbg.interceptor;%0A%0Aimport org.apache.ibatis.executor.Executor;%0Aimport org.apache.ibatis.mapping.MappedStatement;%0Aimport org.apache.ibatis.plugin.*;%0A%0Aimport java.util.Properties;%0A%0A/**%0A * Created by pin on 2015/5/26.%0A */%0A@Intercepts(%7B%0A    @Signature(type = Executor.class, method = %22update%22, args = %7BMappedStatement.class, Object.class%7D)%0A%7D)%0Apublic class BatchInterceptor implements Interceptor %7B%0A%0A  @Override%0A  public Object intercept(Invocation invocation) throws Throwable %7B%0A    return null;%0A  %7D%0A%0A  @Override%0A  public Object plugin(Object target) %7B%0A    if (target instanceof Executor) %7B%0A      return Plugin.wrap(target, this);%0A    %7D else %7B%0A      return target;%0A    %7D%0A  %7D%0A%0A  @Override%0A  public void setProperties(Properties properties) %7B%0A%0A  %7D%0A%7D%0A

use plugin to resolve batch problems