在web.xml中加入 這樣系統會自動讀取/WEB-INF/applicationContext.xml 如果自己定義檔案名,還需要增加 此時的applicationContext.xml在src目錄下