对我来说,Spring IDE最实用的一个功能就是:
对Class Name进行"Refactor --> Rename..."时,Spring IDE使Eclipse能够把bean config file里的设置也同时自动Refactor rename,非常好!
========如何安装Spring IDE?==========
- Open Eclipse. Go to Help -> Software Updates -> Find and Install.
- Select "Search for new features to install". Click "Next".
- Click "New Remote Site". Enter "Spring IDE updatesite" for the Name
- (important step)如果是安装spring ide release version,那么输入"http://springide.org/updatesite/" for the URL,而如果你想使用目前最新的spring IDE(例如当前开发的最新版本是2.0 M4),那么应该输入"http://springide.org/updatesite_dev/"
- 后面的步骤略
==========安装Spring IDE 2.0前需要安装的是:==========
- Eclipse 3.2.x
- Web Tools 1.5.x
==========多个bean config files,如何show graph of bean relations?==========
例如,你有两个bean config file: applicationContext.xml and springtemplate-servlet.xml,其中springtemplate-servlet.xml的bean引用了applicationContext.xml的bean,但当你在"Spring Explorer" View里right click springtemplate-servlet.xml的bean, and select "Open Graph"时,则
显示的关联图无法显示对applicationContext.xml的bean的引用。
这种情况下,你就要
使用bean config set来把这两个bean config file组成1 set,即把这两个bean config file关联在一起,这样就可以看到定义在不同bean config file的bean之间的关联了。
如何设置bean config set,见
http://springide.org/project/wiki/SpringideGuide
==========Useful Links==========
Spring IDE Guide
Spring IDE 2.0的新特性
Spring IDE Wiki (all guides you need)
Spring IDE使用的中文文章