一.安装插件AbatorAbator for Eclipse Update Site
This is the Abator for Eclipse update site. If you're not sure what Abator is, then see this pagehttp://ibatis.apache.org/abator.html
If you've already installed a prior version of Abator for Eclipse, then simply run the Eclipse Install/Update tool and any new version will be found automatically.
If you've not already installed Abator, then you can use the built in Eclipse install support by following these steps:
- Take the "Help>Software Updates>Find and Install" Menu Option
- Select the "Search for new features to install" radio button, press "Next"
- Press the "New Remote Site" button
-
Enter the following information:
- Name:
- Abator for Eclipse Update Site
- URL:
- http://ibatis.apache.org/tools/abator
- Press OK
- Check the box next to "Abator for Eclipse Update Site"
- Follow the remainder of the install wizard
3、插件完成后,建立一个项目ibatisTest,然后选择文件>新建>ABator for iBatis configuration File,默认文件名,点击“完成”。修改刚才的文件abatorConfig.xml,把里面的相关“?”根据自己的实际情况替换如下,我的是这样的。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE abatorConfiguration PUBLIC "-//Apache Software Foundation//DTD Abator for iBATIS Configuration 1.0//EN"
"http://ibatis.apache.org/dtd/abator-config_1_0.dtd">
<abatorConfiguration>
<abatorContext> <!-- TODO: Add Database Connection Information -->
<jdbcConnection driverClass="oracle.jdbc.driver.OracleDriver"
connectionURL="jdbc:oracle:thin:@localhost:1521:orcl"
userId="spell"
password="spell">
<classPathEntry location="G:/techinfo/javaLib/DB_Jar/oracle/classes12.jar" />
</jdbcConnection>
<javaModelGenerator targetPackage="com.spell.model" targetProject="ibatisTest/src" />
<sqlMapGenerator targetPackage="com.spell.map" targetProject="ibatisTest/src" />
<daoGenerator type="IBATIS" targetPackage="com.spell.dao" targetProject="ibatisTest/src" />
<table tableName="members">
</table>
</abatorContext>
</abatorConfiguration>
5、 在abatorConfig.xml上点击鼠标右键,选择Generate iBATIS Artifact,在src目录下会生成com.spell.model、com.spell.map、com.spell.dao三个目录,文件也建立好了。 其他有什么要修改的就自己动手吧~~
6
来至:http://hi.baidu.com/ecspell/item/7293b4456d94d1d2c0a592a8
相关推荐
myEclipse下IBatis-Abator插件自动生成代码和配置的方法
J2EE Eclipse+MyEclipse+tomcat开发环境
里面包含了eclipse+myeclipse+tomcat配置的全过程,还有截图说明,是我一个好心的同学自己做,希望能给刚学的人一个好的开始
使用eclipse + myeclipse + webshpere 开发网站
Eclipse+MyEclipse+Tomcat配置
Eclipse+MyEclipse+Tomcat的配置
Eclipse+MyEclipse+Tomcat 搭建开发JSP和Servlet的平台
eclipse+myeclipse+Tomcat配置的所有步骤
搭建Eclipse3.2.2+MyEclipse5.5+Tomcat+Weblogic
初学者,配置 eclipse+myeclipse+tomcat
Eclipse+MyEclipse+Tomcat开发环境
Ubuntu下配置java环境(JDK1.6+eclipse+myeclipse+tomcat)
Eclipse+Myeclipse+Lomboz搭建图解(word版).rar
Eclipse+MyEclipse+Tomcat+JDK的安装
使用Eclipse+MyEclipse+MySql开发一个用户注册登录系统.pdf
使用Eclipse+MyEclipse+MySql开发一个用户注册登录系统.doc