Mybastis的Configuration.xml配置
来源:互联网 发布:淘宝上卖av的店铺 编辑:程序博客网 时间:2024/04/27 17:58
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
<typeAliases>
<typeAlias type="entity.PeopleInfo" alias="PeopleInfo"/> //类型别名设置,如果不配置,必须在mapper文件中类型前加上包名字
</typeAliases>
<environments default="development">
<environment id="development">
<transactionManager type="JDBC"/>
<dataSource type="POOLED">
<property name="driver" value="com.mysql.jdbc.Driver"/>
<property name="url" value="jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEncoding=utf8"/>
<property name="username" value="root"/>
<property name="password" value=""/>
</dataSource>
</environment>
</environments>
<mappers>
<mapper resource="resource/PeopleDao.xml"/>
<mapper resource="resource/PeopleInfoDao.xml"/>
</mappers>
</configuration>
<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
<typeAliases>
<typeAlias type="entity.PeopleInfo" alias="PeopleInfo"/> //类型别名设置,如果不配置,必须在mapper文件中类型前加上包名字
</typeAliases>
<environments default="development">
<environment id="development">
<transactionManager type="JDBC"/>
<dataSource type="POOLED">
<property name="driver" value="com.mysql.jdbc.Driver"/>
<property name="url" value="jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEncoding=utf8"/>
<property name="username" value="root"/>
<property name="password" value=""/>
</dataSource>
</environment>
</environments>
<mappers>
<mapper resource="resource/PeopleDao.xml"/>
<mapper resource="resource/PeopleInfoDao.xml"/>
</mappers>
</configuration>
0 0
- Mybastis的Configuration.xml配置
- Spring的@Configuration来代替xml配置
- MyBatis02--Configuration.xml配置
- Spring非XML方式配置@Configuration的使用。
- Apache Commons Configuration读取xml配置
- Spring配置之mybatis-configuration.xml
- 使用commons的Configuration读取XML
- commos configuration 获得xml,properties 的属性
- 使用commons的Configuration读取XML
- MyBatis (一)configuration.xml的配置/mapper持久类的映射/sqlSession的获取/基础的select,insert,delete,update
- jsf in action 笔记:web.xml配置(Configuration)--2008.04.11
- hibernate.cfg.xml重写Configuration文件,实现批量配置mapping
- logback.xml常用配置详解<configuration> and <logger>
- logback.xml常用配置详解——<configuration> and <logger>
- 配置hive的坑 hive-site.xml:2787:3: The element type "configuration" must be terminated by the matching
- hadoop 的Configuration 配置的使用。
- 用apache的configuration实现实时配置
- keil 的 配置向导 configuration wizard
- libz.dylib框架怎么导入
- CentOS 下通过yum安装MongoDB记录
- C语言中字符串函数的使用底层实现方法
- java 类初始化顺序
- react-bits:Render Callback
- Mybastis的Configuration.xml配置
- Android异步消息处理机制之looper机制
- Java-基本数据类型
- 1109
- Netlink中常用宏定义
- 单例模式
- 《JavaScript高级程序设计 第三版》学习笔记 (一)数据类型详解
- (数学专题)eqution 逆元+扩展欧几里得+组合数
- (16):复合优先于继承