MyBatis insert后返回自增字段的值后就报错,但是返回值依旧是对象啊,只是多了一个属性呀!

HTTP Status 500 - nested exception is org.apache.ibatis.executor.ExecutorException: Error getting generated key or setting result to parameter object. Cause: java.lang.NullPointerException
type Exception report
message nested exception is org.apache.ibatis.executor.ExecutorException: Error getting generated key or setting result to parameter object. Cause: java.lang.NullPointerException
description The server encountered an internal error that prevented it from fulfilling this request.

http://www.cnblogs.com/waterystone/p/5654300.html

可以参考一下这个,http://www.cnblogs.com/fsjohnhuang/p/4078659.html