2013年8月6日
摘要: 文中用的框架版本:spring 3,hibernate 3,没有的,自己上网下。web.xml配置: s3h3 contextConfigLocation classpath:applicationContext*.xml org.springframework.web.context.ContextLoaderListener spring org.springframework.web.servlet.DispatcherServlet 1 spring *.do index.jsp spring-servlet,主要配置... 阅读全文
posted @ 2013-08-06 15:10 Eleven_Niu 阅读(299) 评论(0) 推荐(0) 编辑
摘要: Spring MVC 注解开发备忘录此文章不是Spirng MVC讲解,相关文章大家可以自行Google。先来看一下Spring MVC注解开发中常用标签,如下表:编号注解说明位置备注1@Controller将类变成Spring Bean类现阶段@Controller、@Service 以及 @Repository 和 @Component 注解的作用是等价的2@RequestMapping请求映射类、方法标注在类上意指类实现Controller接口标注在方法上意指扩展Spring预定义Controller (如:SimpleFormController)3@RequestParam入参绑定U 阅读全文
posted @ 2013-08-06 15:09 Eleven_Niu 阅读(496) 评论(0) 推荐(0) 编辑