下載了spring ide, 其具體的使用方法。
Usage
Fresh Installation
- Add Spring Beans project nature
- select open project nodes in Eclipse resource navigator, or JDT package explorer
- 在Eclipse的resource navigator窗口中打開項(xiàng)目,(或者在 JDT package explorer窗口)
- activate context menu item "Add Spring Beans Project Nature" on selected projects -> these projects are now decorated with a small 'S' in the upper right corner (overwriting other decorators, e.g. Java project decorator 'J')
- 在所打開的項(xiàng)目中,右鍵項(xiàng)目名,選擇“Add Spring Beans Project Nature”,這時(shí)該項(xiàng)目就會(huì)在右上角掛上了“S”. :)
- Add references to other Spring projects
- open project's properties dialog in Eclipse resource navigator or JDT package explorer
- 右鍵項(xiàng)目名,查看其properties,這就打開了"project properties"窗口
- select the properties page "Project References" from the list
- 這時(shí)就可以選擇 "Project References"
- select Spring project(s) containing Spring Beans config files which are referenced from within in this project's Spring Beans config sets
- 選擇 所依賴引用的項(xiàng)目
- Add Spring Beans factory config files
- open project's properties dialog in Eclipse resource navigator or JDT package explorer or via double-clicking a project in the Spring Beans view
- 同樣,再次打開項(xiàng)目的屬性對(duì)話框,或者也可以打開“Spring Beans View”(這個(gè)窗口可以在window->slow view里面打開)
- select the properties page "Spring Beans Project" from the list
- 在項(xiàng)目的屬性窗口中選擇"Spring Beans Project"
- use button "Add..." to open a selector dialog and select all Spring Beans config files -> added Spring Beans config files are decorated with a small 'S' in the upper right corner
- 通過“Add”按鈕選擇Spring配置文件。
- (optionally) combine config files into config sets with the second tab of the property page (use "New..." to create a new config set and select the config files; use "Move Up" and "Move Down" to change the order of the config files)
- Open Spring Beans view
- select from within any of the added Spring Beans config files opened in an Eclipse editor the menu item "Navigate/Show In/Spring Beans" -> Spring Beans view is opened and the corresponding Spring Beans config file is selected in the view's model
- Double clicking on an entry in the view navigates to the corresponding location in the config file
- Validate Spring Beans config file
- save any of the added Spring Beans config files from within an open Eclipse editor -> all errors occured during validation create a problem marker in Eclipse's task view
- 保存Spring配置文件,這時(shí)就可以看到錯(cuò)誤了 (俺沒有能夠在task窗口中看到,但在Bean.xml文件的編輯窗口看到了,嘻嘻~~~)
- 另外,可以觀察一下"Spring beans"那個(gè)窗口,在其上面有三個(gè)按鈕,第三個(gè)是"show in property sheet", 這個(gè)功能不錯(cuò)哦,可以試一下。當(dāng)然了,直接看xml文件也是挺好的。
6、非常好的一個(gè)功能,在Spring Beans那個(gè)窗口中添加好你的Spring配置文件之后,在其中右鍵你的配置文件,選擇“show graph”,it's such a wonderful function~~~~
在線安裝地址: http://springframework.sourceforge.net/spring-ide/eclipse/updatesite/.
注意哦,在安裝的時(shí)候,一定要選“Spring framework”,然后才可以裝“Spring IDE”(就是Beans Configuration Support啦。)