Spring
113羊皮卷
坚持学习,持续总结!不耻下问...
展开
-
@repository注解
dao层使用@repository注解 @Repository(value="userDao")注解是告诉Spring,让Spring创建一个名字叫“userDao”的UserDaoImpl实例。 当Service需要使用Spring创建的名字叫“userDao”的UserDaoImpl实例时,就可以使用@Resource(name = "userDao")注解告诉Spring原创 2017-08-29 16:49:43 · 3057 阅读 · 0 评论 -
springMVC注解中之@RequestMapping注解及常用参数
package cn.hive.action; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.Reque原创 2017-08-29 17:12:07 · 358 阅读 · 0 评论