在src/main/resources下创建mapper文件夹,并在此文件夹中使用XML配置SQL语句:
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.tedu.tmall.admin.mall.dao.persist.mapper.CategoryMapper">
</mapper>