mybatis执行传入的任意sql语句
type
status
date
slug
summary
tags
category
icon
password
order
首先,新建一个SqlMapper.xml,注意修改namespace其实因为需要,我只用到了select,用LinkedHashMap是为了保证查询的字段值有序(存入与取出顺序一致)。
然后新建接口SqlMapper
再新建个接口SqlService
最后是实现这个SqlService接口
首先,新建一个SqlMapper.xml,注意修改namespace其实因为需要,我只用到了select,用LinkedHashMap是为了保证查询的字段值有序(存入与取出顺序一致)。
然后新建接口SqlMapper
再新建个接口SqlService
最后是实现这个SqlService接口