mybatis执行传入的任意sql语句
技术分享|2019-9-6|最后更新: 2023-9-4
type
status
date
slug
summary
tags
category
icon
password
order
 
首先,新建一个SqlMapper.xml,注意修改namespace
其实因为需要,我只用到了select,用LinkedHashMap是为了保证查询的字段值有序(存入与取出顺序一致)。
然后新建接口SqlMapper
再新建个接口SqlService
最后是实现这个SqlService接口
mybatis plus代码生成器配置SpringMvc中关于fastjson的一点配置