1. 程式人生 > >如何解決在使用Eclipse在配置xml檔案時,xml檔案底部不出現namespace等選項。

如何解決在使用Eclipse在配置xml檔案時,xml檔案底部不出現namespace等選項。

如題:   

使用Eclipse在配置*.xml檔案時,需要配置名稱空間namspace,  .xml檔案底部不出現配置選項:

如下為正常顯示的情況

 

如無法顯示此列:

解決方法:

1、 開啟 Window-> preferences->General->Editors->File Associatior


       選擇 *.xml 中的Spring Web Flow XML Editor(default)  ->      點選 Default  ->OK ,然後重新開啟 *.xml檔案, 檢視是否成功。

2、 如果不成功,再繼續如下操作

       開啟:

Help->Eclipse Marketplace  


  搜尋spring tools  找到如下

 

點選安裝。

----》  然後在開啟 *.xml檔案時:


右鍵檔案

open with->Spring Config Editor    

成功顯示,親測。