Mybatis配置文件

 1 <?xml version="1.0" encoding="UTF-8" ?>
 2 <!DOCTYPE configuration
 3         PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
 4         "http://mybatis.org/dtd/mybatis-3-config.dtd">
 5 <configuration>
 6     <!--
 7         <properties resource="com/ibatis/resources/db.properties" />
 8     -->
 9     <typeAliases>
10         <typeAlias type="com.orma.model.Lwla" alias="Lwla"></typeAlias>
11     </typeAliases>
12     <environments default="development">
13         <environment id="development">
14             <transactionManager type="JDBC"/>
15             <dataSource type="POOLED">
16                 <property name="driver" value="oracle.jdbc.driver.OracleDriver"/>
17                 <property name="url" value="jdbc:oracle:thin:@192.168.1.3:1521:xe"/>
18                 <property name="username" value="lwl"/>
19                 <property name="password" value="123456"/>
20             </dataSource>
21         </environment>
22     </environments>
23     <mappers>
24         <mapper resource="com/orma/mapper/LwlaMapper.xml"/>
25     </mappers>
26 </configuration>

 

posted @ 2020-09-08 11:29  勤快的懒羊羊  阅读(98)  评论(0编辑  收藏  举报