摘要: 我这里直接使用注解方法: DemoMapper接口: 测试类: 阅读全文
posted @ 2019-10-22 16:49 AxeBurner 阅读(989) 评论(0) 推荐(0) 编辑
摘要: pom.xml配置: 这个配置还有不足请在下方给出建议 I: 我这里测试三个 : 分别是有@的 DemoMapper(接口): package com.test; import com.pojo.Demo; import org.apache.ibatis.annotations.Select; i 阅读全文
posted @ 2019-10-22 11:53 AxeBurner 阅读(1265) 评论(0) 推荐(0) 编辑
摘要: /** * 入门案例 */ public static void main(String[] args) throws IOException { //1、读取配置文件 InputStream in = Resources.getResourceAsStream("mybatis-config.xml"); //2、... 阅读全文
posted @ 2019-10-22 11:05 AxeBurner 阅读(132) 评论(0) 推荐(0) 编辑