applicationContext.xml(DataSource、SessionFactory、TransactionManager、掃描包)、spring-mvc.xml(視圖解析器、攔截器)。hibernate.cfg.xml 或在 Spring 中完全配置 SessionFactory(映射檔/註解實體)。struts.xml(包命名空間、結果類型、攔截器棧)、web.xml 註冊 StrutsPrepareAndExecuteFilter 及 Spring ContextLoaderListener。CSDN 詳細圖文教程(含完整配置代碼)。