Mybaties中总结《三》优化Mybaties中的配置文件
来源:互联网 发布:瓜达尔港 知乎 编辑:程序博客网 时间:2024/05/21 07:07
application.aproperties中的文件是key与value的形式保存在配置文件中的
jdbc_driver=com.mysql.jdbc.Driver#jdbc_driver=com.mysql.jdbc.driverjdbc_url=jdbc:mysql://localhost:3306/mybatiesjdbc_username=rootjdbc_passwod=root
config.xml中引入application配置文件
<properties resoutce="application.properties"/>
其中的配置文件中的<envoriments default="development"><envoriment id="developement
<?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><!-- 引入application.propertiesp配置文件 --><properties resource="application.properties"/><!-- development是开发者模式,work是工作者模式 --><environments default="development"> <environment id="development"> <transactionManager type="JDBC"/> <!-- 配置数据连接信息 --> <dataSource type="POOLED"> <!-- value引用的是application.propeties中的配置文件 --> <property name="driver" value="${jdbc_driver}"/> <property name="url" value="${jdbc_url}"/> <property name="username" value="${jdbc_username}"/> <property name="password" value="${jdbc_passwod}"/> </dataSource> </environment></environments><!-- 注册userMapper.xml配置文件 --><mappers><!-- 注册配置文件 --> <mapper resource="taotao/mapper/userMapper.xml"/> <mapper class="taotao.main.UserMaperI"/> </mappers> </configuration>
">
阅读全文
0 0
- Mybaties中总结《三》优化Mybaties中的配置文件
- Mybaties中的总结<一>
- mybaties配置文件
- mybaties配置文件
- mybaties
- mybaties
- MyBaties
- mybaties基础教程之三:MyBatis主配置文件
- Mybaties配置文件mapper中的标签使用问题
- Spring+SpringMVC+MyBaties问题总结(三)
- xml中,mybaties中的含义<!CDATA[[]]
- mybaties日常开发总结
- Mybaties中的foreach
- 关于oracle中between and 在mybaties中的使用
- java中的hibernate和Mybaties中注解的区别
- mybaties中的insert into select 用法,mybaties批量插入
- mybaties中的insert into select 用法,mybaties批量插入
- mybaties中的insert into select 用法,mybaties批量插入
- 使用window live writer 解决写博客图片不能粘贴
- 软件开发的过程中, 一定需要简单设计?
- log4j 异步配置
- python中的os操作文件,文件路径
- socket-netfilter---set&getsocket
- Mybaties中总结《三》优化Mybaties中的配置文件
- linux关闭在线登录用户
- PAT程序设计考题——甲级1009( Product of Polynomials ) C++实现
- 数据结构 C语言 哈希
- 记录学习
- MacOS Sierra install thrift-0.10.0
- ES6 的功能侦测库 ES-Checker——工具
- The select cannot be run on any server 报错问题
- java