Advertisement
ninofelino

mybatis-config.xml

Sep 9th, 2014
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.85 KB | None | 0 0
  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.  <properties resource='jdbc.properties'/>
  7.  <typeAliases>
  8.   <typeAlias type='com.agungsetiawan.tutorialmybatis.domain.User' alias='User'></typeAlias>
  9.  </typeAliases>
  10.  <environments default='development'>
  11.   <environment id='development'>
  12.     <transactionManager type='JDBC'/>
  13.     <dataSource type='POOLED'>    
  14.    <property name='driver' value='${jdbc.driverClassName}'/>
  15.    <property name='url' value='${jdbc.url}'/>
  16.    <property name='username' value='${jdbc.username}'/>
  17.    <property name='password' value='${jdbc.password}'/>
  18.     </dataSource>
  19.   </environment>
  20.   </environments>
  21.   <mappers>
  22.      <mapper resource='mapper/UserMapper.xml'/>
  23.   </mappers>
  24. </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement