org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException

出现参数找不到的问题

org.mybatis.spring.MyBatisSystemException(参数找不到问题)

要注意dao层方法中,出现多个参数(参数类型不一致),在MyBatis配置文件中就要对参数进行类型声明

void updateEquipment(@Param("equID") Integer equID ,@Param("equName") String equName);

<update id="updateEquipment">

update equipment set equName = #{equName,jdbcType=VARCHAR} where equID = #{equID,jdbcType=INTEGER}

</update>

注意:

当dao层方法中,只有一个参数,可以不使用@Param,当有多个参数时要使用

参考地址:http://blog.csdn.net/u014079773/article/details/51865492

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-16
  • 2021-09-24
  • 2021-04-12
猜你喜欢
  • 2022-12-23
  • 2021-05-09
  • 2021-11-11
  • 2021-05-22
  • 2021-06-11
  • 2021-06-19
  • 2022-01-30
相关资源
相似解决方案