type
status
date
slug
summary
tags
category
icon
password
ext
order
comment
首先,新建一个SqlMapper.xml,注意修改namespace其实因为需要,我只用到了select,用LinkedHashMap是为了保证查询的字段值有序(存入与取出顺序一致)。
然后新建接口SqlMapper
再新建个接口SqlService
最后是实现这个SqlService接口
- 作者:NotionNext
- 链接:https://loneking.cn/article/66
- 声明:本文采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。