1.新建Web Project
2.添加Spring。點擊項目,右鍵,My Eclipse --> Add Spring Capabilities...


Spring加完後,項目結構目錄:(會有S出現!)

3.添加Hibernate。點擊項目,右鍵 MyEclipse --> Add Hibernate Capabilities...




Finish
添加完後,項目目錄結構如下:不會有hibernate.cfg.xml文件了

4.添加Struts:


Finish
加完Struts後項目目錄結構如下:

5.在web.xml 中添加Spring監控器
org.springframework.web.context.ContextLoaderListener

6.啟動Tomcat

7.浏覽器輸入地址:http://localhost:8080/EmploymentSystem/

DONE!