报错:was not registered for synchronization because synchronization is not active 如果parameterType不是pojo类型,那么<if>标签要像下面这样写: <if test="_parameter != null and _parameter != '' " > 不能像这样写 <if test="name != null and name != '' " > 这样写会报错