摘要: spring与mybatis整合 环境搭建 导入相关依赖 1. junit <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope> 阅读全文
posted @ 2021-07-09 23:54 鬼谷仙生 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 注解开发、AOP的使用 导入配置文件约束: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2 阅读全文
posted @ 2021-07-09 23:33 鬼谷仙生 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 日志、分页、注解开发 日志 一、mybatis默认日志: 在mybatis核心配置文件中,配置日志: <settings> <setting name="logImpl" value="STDOUT_LOGGING"/> </settings> 执行代码: 二、Log4j 1、先导入log4j的包 阅读全文
posted @ 2021-07-09 23:04 鬼谷仙生 阅读(100) 评论(0) 推荐(0) 编辑