遇到這樣的錯誤:java
ThriftServiceImpl$$FastClassBySpringCGLIB$$39262e7e.invoke(<generated>) ~[spring-core-4.2.0.RELEASE.jar:?] at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) ~[spring-core-4.2.0.RELEASE.jar:4.2.0.RELEASE] at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:717) ~[spring-aop-4.2.0.RELEASE.jar:4.2.0.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) ~[spring-aop-4.2.0.RELEASE.jar:4.2.0.RELEASE]
經過invoke(<generated>)
知道是生成某種對象失敗,查看代碼。spring
代碼中存在mybatis中操做sql場景:sql
<update id="updateOrderUserCouponMappingMapperExpectTimeById"> UPDATE table SET expect_time = #{expectTime} WHERE id = #{id} </update>
接收方式是個void:mybatis
void updateOrderUserCouponMappingMapperExpectTimeById(@Param("id") long id, @Param("expectTime") int expectTime);
問題就在這,mybatis默認insert,update須要用int方式接收修改,若是是void接收就會報invoke(<generated>)
的錯誤。app