1. 程式人生 > >編寫spring配置檔案時,不能出現幫助資訊

編寫spring配置檔案時,不能出現幫助資訊

由於spring的schema檔案位於網路上,如果機器不能連線到網路,那麼在編寫配置資訊時候就無法出現提示資訊,解決方法有兩種: 1、讓機器上網,eclipse會自動從網路上下載schema檔案並快取在硬碟上。 2、手動新增schema檔案,方法如下: windwos->preferences->myeclipse->files and editors->xml->xmlcatalog 點"add",在出現的視窗中的Key Type中選擇URI,在location中選"File system", 然後在spring解壓目錄的dist/resources目錄中選擇spring-beans-2.5.xsd, 回到設定視窗的時候不要急著關閉視窗,應把視窗中的Key Type改為Schema location,Key改為http://www.springframework.org/schema/beans/spring-beans-2.5.xsd