【IT之路】MyEclipse實現Spring集成

一、Maven工程導入Spring相關jar包 見:【IT之路】MyEclipse可視化方式導入jar包   二、創建Spring配置文件 1、配置spring.xml,實現自動掃描 在src/main/resource下創建spring配置文件:spring.xml 設置爲自動掃描dao和service   2、驗證自動掃面方式實現service配置 編寫測試類,調用驗證service配置  
相關文章
相關標籤/搜索