日本综合一区二区|亚洲中文天堂综合|日韩欧美自拍一区|男女精品天堂一区|欧美自拍第6页亚洲成人精品一区|亚洲黄色天堂一区二区成人|超碰91偷拍第一页|日韩av夜夜嗨中文字幕|久久蜜综合视频官网|精美人妻一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷解決方案
ibatis插件的安裝方式

安裝ibatis插件的方法其實(shí)很簡(jiǎn)單,請(qǐng)按照如下的步驟安裝ibatis插件。

一.安裝ibatis插件

從http://ibatis.apache.org/abator.html下載Eclipse Plugin。插件一共有2種安裝方式.

1.遠(yuǎn)程安裝ibatis插件.

 eclipse->Help>Software Updates>Find and Install->Search for new features to install->

 New Remote Site(name:Abator for Eclipse Update Site ,URL:http://ibatis.apache.org/tools/abator)

 ->OK->Abator for Eclipse Update Site->OK

2.手動(dòng)安裝ibatis插件.

 http://ibatis.apache.org/abator.html下載AbatorForEclipse1.1.0.zip,下載后在eclipse中進(jìn)行ibatis插件安裝操作。

 eclipse->Help>Software Updates>Find and Install->Search for new features to install(press "Next" )->

 New Local Site->選種剛才下載的文件->OK

二.建立一個(gè)項(xiàng)目

 新建一個(gè)Eclipse項(xiàng)目,輸入名字,然后選擇文件>新建>ABator for iBatis configuration File,選擇Location,并且鍵入File Name:abatorCsonfig.xml。

點(diǎn)擊“完成”,Eclipse會(huì)在程序根目錄下建立abatorCsonfig.xml文件,打開編輯它,內(nèi)容如下:

<?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 >

    <jdbcConnection driverClass="驅(qū)動(dòng)" connectionURL="數(shù)據(jù)庫URL" userId="用戶名" password="密碼" >

      <classPathEntry location="數(shù)據(jù)庫驅(qū)動(dòng)jar包" />

    </jdbcConnection>

    <javaModelGenerator targetPackage="model層包路徑" targetProject="src路徑" />

    <sqlMapGenerator targetPackage="map層包路徑" targetProject="src路徑" />

    <daoGenerator targetPackage="dao層包路徑" targetProject="src路徑" type="IBATIS" />

    <table schema="表名" tableName="表名" catalog="數(shù)據(jù)庫名">一定要寫上,不然會(huì)報(bào)錯(cuò)的。

    </table>

  </abatorContext>

</abatorConfiguration>

在abatorCsonfig.xml上點(diǎn)擊鼠標(biāo)右鍵,選擇Generate iBATIS Artifact,在src目錄下會(huì)生成model、map、dao三個(gè)目錄,文件也建立好了。

 javaModelGenerator:我們常說的ValueObject

 sqlMapGenerator:XML文件

daoGenerator:放置接口和DAO的代碼

這樣一來,ibatis插件就被順利的安裝上了。


文章名稱:ibatis插件的安裝方式
當(dāng)前URL:http://www.dlmjj.cn/article/dpgpces.html