spring整合struts2

注意:这里spring整合struts2,使用的数据库操作类是JdbcTemplate模板,该模板使用c3p0连接池。Spring将JdbcTemplate注册成一个Bean,提供给dao使用【依赖注入】。   spring将扫描包中的所有类,将带有spring的注解【@Controller,@Repository,@Service】的类注册到容器中。 1.jar包 2. 配置web.xml  
相关文章
相关标签/搜索