mybatis返回两个字段分别作为map的key和value
参考文章:https://blog.csdn.net/llmys/article/details/80362280 https://blog.csdn.net/jlh912008548/article/details/62884627基本分为三步:第一步:在mapper.xml里写好你要查询的sql,resultMap要自定义,配置key和value...
转载
2020-04-14 15:16:31 ·
6521 阅读 ·
0 评论