第一步:查看自己安裝的eclipse的正確的版本號:
打開eclipse,點擊help--》about eclipse IDE---->就可以看到你自己的eclipse對應的版本號
第二步:http://spring.io/tools3/sts/legacy
注意:到插件的官網下載自己eclipse對應的版本插件;如果插件與自己的工具版本不適應會安裝出錯
第三步:安裝插件:點擊help--->install new software
然后就是下一步,同意等等,最后同意重啟eclipse出現如下界面表示安裝成功。
然后打開window=》preferences=》general=》editors=》file associations選擇*.xml設置默認為剛添加的插件打開
找到File Associations,在File types中找到.xml項,如果沒有就點擊Add來添加,選中.xml然后在Associated editors中選中Spring Config Editor點擊右邊的Default就可以了
如果不想默認用Spring Config Editor打開xml文件可以不用配置這里,右鍵點擊xml文件也可選擇用Spring Config Editor來打開
打開window=》preferences=》 spring=》beans support中namespace中取消第二個選框,再打開.xml文件就會有namespace界面視圖了