$$FastClassBySpringCGLIB$$invoke()错误

遇到这样的错误: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

相关文章
相关标签/搜索