1. 程式人生 > >eclipse 上xml 檔案開啟後底下不會出現namespace等資訊的原因

eclipse 上xml 檔案開啟後底下不會出現namespace等資訊的原因

今天在使用eclipse 做Spring MVC 的xml 檔案編譯的時候,發現開啟xml 的配置檔案後只有程式碼的選項可以看到。




能正確顯示namespace 等資訊是引文預設開啟xml 的檔案工具沒有選擇正確。


修改方法為:window--->preferences---->general--->Editors--->File Associatiors---->xml---->設定對應Associated editors 為自己所需預設的。