2017-08-08 10:01:06 +07:00
|
|
|
<?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>
|
|
|
|
|
|
|
|
<settings>
|
|
|
|
<!-- Globally enables or disables any caches configured in any mapper under this configuration -->
|
|
|
|
<setting name="cacheEnabled" value="true"/>
|
|
|
|
<!-- Sets the number of seconds the driver will wait for a response from the database -->
|
|
|
|
<setting name="defaultStatementTimeout" value="3000"/>
|
|
|
|
<!-- Enables automatic mapping from classic database column names A_COLUMN to camel case classic Java property names aColumn -->
|
|
|
|
<setting name="mapUnderscoreToCamelCase" value="true"/>
|
|
|
|
<!-- Allows JDBC support for generated keys. A compatible driver is required.
|
|
|
|
This setting forces generated keys to be used if set to true,
|
|
|
|
as some drivers deny compatibility but still work -->
|
|
|
|
<setting name="useGeneratedKeys" value="true"/>
|
|
|
|
</settings>
|
|
|
|
|
2017-08-15 09:47:18 +07:00
|
|
|
<typeHandlers>
|
|
|
|
<typeHandler handler="io.spring.infrastructure.mybatis.DateTimeHandler"
|
|
|
|
javaType="org.joda.time.DateTime"/>
|
|
|
|
</typeHandlers>
|
|
|
|
|
2017-08-08 10:01:06 +07:00
|
|
|
<!-- Continue going here -->
|
|
|
|
|
|
|
|
</configuration>
|