2023年7月24日发(作者:)
迁移polardb问题⼀环境polardb版本
### The error may exist in com/xx/templatedef/dao/oracle/XXTemplateDef_### The error may involve TemplateDefByCategoryAndState-Inline### The error occurred while setting parameters### SQL: select * from act_xx_tem_def where category=? and deploy_state=1### Cause: ception: 不良的类型值 long :
ception: canot convert the column of type BYTEA to requested type long;原因mybatis查询act_tem_def表涉及到blob字段(content_bytes),默认的BlobTypeHandler的getBlob⽅法不适⽤, 需要重写handler解决⽅案1. 在业务下重写BlobTypeHandler, 获取getBinaryStream然后转换byte数组2. -> resultmap中, 加⼊下述转换
发布者:admin,转转请注明出处:http://www.yc00.com/news/1690194449a312732.html
评论列表(0条)