<?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>
<properties resource="jdbc.properties"></properties>
<settings>
<setting name="mapUnderscoreToCamelCase" value="true"/>
</settings>
<typeAliases>
<package name="com.hisoft.pojo"/>
</typeAliases>
<environments default="development">
<environment id="development">
<transactionManager type="JDBC"/>
<dataSource type="POOLED">
<property name="driver" value="${driver}"/>
<property name="url" value="${url}"/>
<property name="username" value="${username}"/>
<property name="password" value="${password}"/>
</dataSource>
</environment>
</environments>
<mappers>
<package name="com.hisoft.mapper"/>
<!-- <mapper resource="UserMapper.xml"/> -->
</mappers>
</configuration>
Mybatis-config.xml核心配置文件
原创Denial_learn 博主文章分类:mybatis ©著作权
©著作权归作者所有:来自51CTO博客作者Denial_learn的原创作品,请联系作者获取转载授权,否则将追究法律责任
下一篇:java实现MD5加密解密

提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
mybatis中的核心配置文件mybatis-config.xml
mybatis中的核心配置文件mybatis-config.xml内容如下
mybatis xml java mysql 配置文件 -
Mybatis --02.mybatis核心配置文件mybatis-config.xml
说明:mybatis环境搭建步骤:1、创建Maven工程 2、导入坐标、pom.xml3、编写必要
mybatis核心配置文件 mybatis-config.xml xml mysql Source -
mybatis-config.xml配置
mybatis-config.xml中主要是配置一些环境变量和mybatis-config分页控件的配置<?xmlversion="1.0"encoding="UTF-8"?>
mybatis java maven spring boot elasticsearch -
mybatis-config.xml
mybatis-config.xml
xml mybatis-config.xml -
ssm(Spring+Spring mvc+mybatis)mybatis配置文件——mybatis-config.xml
...
xml 实体类 查询语句 对象名 Java