spring整合struts2

注意:這裏spring整合struts2,使用的數據庫操作類是JdbcTemplate模板,該模板使用c3p0連接池。Spring將JdbcTemplate註冊成一個Bean,提供給dao使用【依賴注入】。   spring將掃描包中的所有類,將帶有spring的註解【@Controller,@Repository,@Service】的類註冊到容器中。 1.jar包 2. 配置web.xml  
相關文章
相關標籤/搜索