2023年11月1日

Illegal base64 character 3a

摘要: 这个问题一般都是转译的问题。或者在写decode的时候写成了file.byte[]。 base64后 前缀 是 “data:image/png;base64,” 类似这样的。需要去掉,并且替换回车和换行符 if (file.contains("data:")) { int start = file. 阅读全文

posted @ 2023-11-01 15:57 天军 阅读(1075) 评论(0) 推荐(0) 编辑

Mybatis中resultType为map时,null值的字段不返回

摘要: 问题描述 1 <select id="getUser" parameterType="map" resultType="map"> 2 SELECT 3 id, name, addr 4 FROM 5 user 6 WHERE 7 id = #{id} 8 </select> 以上查询,当addr字 阅读全文

posted @ 2023-11-01 15:49 天军 阅读(1311) 评论(0) 推荐(0) 编辑

导航