Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to set up iBATIS for Eclipse

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you how to set up iBATIS for Eclipse, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Let's start from the beginning with the problem of setting up iBATIS for Eclipse. The most annoying repetitive work for IBatis applications is to keep writing DAO,DTO and sqlmap in xml files. In fact, most of the time these tasks are repetitive and boring. Fortunately, we also have abator (http://ibatis.apache.org/abator.html), an automatic IBatis generation tool, which can help you generate a large number of DAO,DTO and sqlmap.

If you use Eclipse as IDE, then things are simple (I'm sure there are not many people who don't use it):

Install the Eclipse plug-in

1. Eclipse3.1,jdk1.4 or above is required

two。 Install the abator plug-in on Eclipse

Eclipse menu bar-- > help-- > Software Updates-- > Find And Install...

Select "Search for new features to install" in the pop-up dialog box and click "next"

Click the button New Remort Site... in the dialog box Fill in http://ibatis.apache.org/tools/abator in the URL input box in the pop-up dialog box, and the Name input box will write whatever you want.

Click Finish, install the plug-in, and then restart Eclipse

Let's test the function.

1. Create a new java project

two。 Create an abator configuration file in the Eclipse menu bar

File-- > Abator for iBatis Configration File

OK, we have finished creating the configuration file. Let's type in the abator configuration file to see how to configure it.

After opening it, the content is basically like this.

Xml code

? xml v < ersion= "1.0" encoding= "UTF-8"? > < abatorConfiguration > < abatorContext >

Share To

Development

© 2024 shulou.com SLNews company. All rights reserved.

12
Report