摘要: 1. 引入工程依赖包 2. 编写DAO接口 3. 编写SQL配置文件(本人不太习惯注解,习惯将SQL写在配置文件中) 4. 配置myBatis配置类,也可以放在启动类上 5. 配置application.yml文件 6. 编写controller,调用MyBatis 源代码: "https://gi 阅读全文
posted @ 2019-11-09 23:47 拓仲 阅读(311) 评论(0) 推荐(1) 编辑
摘要: Map map=new HashMap(); map.put("1", "one"); map.put("2","two"); map.put("3", "three"); map.put("4", "four"); map.put("5", "five"); map.put("6", "six") 阅读全文
posted @ 2019-11-09 21:00 拓仲 阅读(2133) 评论(0) 推荐(0) 编辑