摘要: Spring整合mybatis 注解方式 2023-11-23 17:18:29 星期四 a) 依赖的引入 <!--spring基础依赖--> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context 阅读全文
posted @ 2023-11-23 17:49 Kbaor 阅读(5) 评论(0) 推荐(0) 编辑
摘要: Spring整合mybatis Xml 方式 2023-11-23 15:18:12 星期四 1.依赖的引入 <!--spring基础依赖--> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-contex 阅读全文
posted @ 2023-11-23 15:53 Kbaor 阅读(6) 评论(0) 推荐(0) 编辑
摘要: Spring--整合JDBC 》JdbcTemplate List query(String sql, RowMapper rowMapper, @Nullable Object... args) String sql 执行的sql语句,可以使用占位符 RowMapper 接口: 2.1 mapRo 阅读全文
posted @ 2023-11-23 10:34 Kbaor 阅读(11) 评论(0) 推荐(0) 编辑