[Java][MyBatis]物理分页实现(三)

2014-11-24 07:11:20 · 作者: · 浏览: 10
racle(){ return DBTYPE_ORACLE.equals(this.dbType); } /** * 判断是否是MySQL数据库 * @return * @author wangdf */ public boolean isMySQL(){ return DBTYPE_MYSQL.equals(this.dbType); } /** * 取得数据库类型 * @return * @author wangdf */ public String getDbType(){ return this.dbType; } /** * 取得默认日期格式 * @return * @author wangdf */ public String getDefaultDateFormat(){ return this.defaultDateFormat; } }

3、在mybatis全局配置文件设置

< xml version="1.0" encoding="UTF-8" >