![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
XML配置文件
qq_39574558
这个作者很懒,什么都没留下…
展开
-
在配置文件xml中配置注解
XML配置文件<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:xsi="htt...原创 2019-04-07 20:25:04 · 823 阅读 · 0 评论 -
一对一级联查询
1创建两张表2创建持久化类即对表中的字段创建JavaBean映射文件1.mybatis-config.xml文件中打开延时加载<settings> <setting name="logImpl" value="log4j" /> <!-- 懒加载设置为 true --> <setting name="lazyLoadin...原创 2019-05-20 15:49:45 · 327 阅读 · 0 评论 -
Spring-MyBatis整合
MyBatis核心 配置文件:mybatis-config.xml配置文件 Mapper配置文件:XXMapper.xmlSpring配置文件:applicationContext.xml一.Mybatis-config.xml:设置日子使用log4f配置环境变量(连接数据库) <!--设置MySql的数据库驱动 -->...原创 2019-05-16 21:44:30 · 66 阅读 · 0 评论