ITeye博客

Ibatis

共 3 篇文章

Ibatis 反向生成工具abator的使用

1、安装abator的eclipse插件,针对eclipse 3.4安装 地址: http://ibatis.apache.org/tools/abator 2、安装完毕,重启Eclipse,File>New>Abator for ibatis configuration file 3、配置abatorConfig.xml文件,事例如下: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE abatorConfiguration PUBLIC "-//Apache Software Foundation//DTD Abator for iBAT…

2014-04-15 23:44 · Ibatis

Ibatis与Spring搭建过程

1、spring的applicationContext.xml配置 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/sprin…

2014-04-15 23:34 · Ibatis

Ibatis 中文条件查询不到数据问题

Ibatis 中文条件查询不到数据问题 更改数据库URL地址连接,强制UTF-8编码 jdbc:mysql://localhost:3306/hammer?useUnicode=true&characterEncoding=utf8 问题:The reference to entity "characterEncoding" must end with the ';' delimiter 由于jdbc:mysql://localhost:3306/hammer?useUnicode=true&characterEncoding=utf8没有写成 jdbc:mysql://localhost:…

2014-04-15 23:21 · Ibatis