偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

ibatis插件的安裝方式

開發(fā) 后端
當(dāng)我們需要使用ibatis插件的時(shí)候,我們首先要知道ibatis插件如何安裝,否則的話,就算有了ibatis插件也是白費(fèi)。這篇文章就是告訴大家,如何安裝ibatis插件。

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

 

.安裝ibatis插件

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

 

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

 

 eclipse->HelpSoftware UpdatesFind 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->HelpSoftware UpdatesFind 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 NameabatorCsonfig.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插件就被順利的安裝上了。

【編輯推薦】

  1. 實(shí)例說明ibatis動(dòng)態(tài)查詢
  2. ibatis標(biāo)簽詳解
  3. 避免ibatisN+1查詢的方法
  4. ibatis級(jí)聯(lián)解決登錄系統(tǒng)問題
  5. ibatis下加入c3p0連接池的方法
責(zé)任編輯:桑丘 來源: 霜之哀觴的blog
相關(guān)推薦

2009-07-20 10:06:07

iBATIS.net查詢方式

2009-06-10 16:41:51

Links安裝Ecli

2010-05-31 09:59:15

Eclipse安裝SV

2009-07-22 17:45:11

ASP.NET插件

2011-04-06 10:57:09

Cacti插件安裝

2009-07-16 09:46:20

iBATIS Log機(jī)

2009-07-17 10:59:59

iBATIS接口

2009-09-24 14:04:25

Hibernate i

2009-07-15 15:47:49

iBATIS是什么

2009-07-21 11:12:00

iBATIS配置

2009-07-16 09:56:32

什么是iBATIS

2011-03-31 09:23:02

Cacti插件

2009-07-22 13:04:41

iBATIS動(dòng)態(tài)查詢

2011-08-11 10:22:59

ibatishibernate

2009-09-17 09:44:31

Flex for ec

2009-07-17 13:13:47

iBATIS Hibe

2009-09-22 13:12:25

Hibernateibatis

2009-07-16 13:51:47

iBATIS測(cè)試類

2021-10-13 22:19:16

插件Babel import

2023-09-07 13:21:00

Linux軟件
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)