今天在编写一个查询MySQL数据库中的图片信息,结果返回的是byte[] 类型,在写Mapper文件时卡了好久,做个总结吧。

Mabatis Mapper文件中返回值是byte[]时,resultType="_byte[]"

数据库里返回的是byte[] ,但是reslutType的byte[] 是代表Byte[], _byte[] 才是byte[].

以下是书上查到的一些相关记录

Mabatis Mapper文件中返回值是byte[]时,resultType="_byte[]"

Mabatis Mapper文件中返回值是byte[]时,resultType="_byte[]"

相关文章:

  • 2022-12-23
  • 2021-11-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-02
  • 2022-12-23
  • 2021-06-20
  • 2021-11-04
  • 2021-12-31
  • 2021-10-24
  • 2022-12-23
相关资源
相似解决方案