spring 注解方式注入
摘要:
配置注解 在xml文件中配置 使用注解 模拟实际开发中的项目层次结构,分别在UserDaoImpl、UserServiceImpl和UserController中实现注解注入。 UserDapImpl @Component注解有属性value,可以指定id值,如果不指定,默认的id为类名的首字母小写 阅读全文
posted @ 2017-03-14 21:02 乄清雅轩灬 阅读(360) 评论(0) 推荐(0)
posted @ 2017-03-14 21:02 乄清雅轩灬 阅读(360) 评论(0) 推荐(0)
posted @ 2017-03-14 15:08 乄清雅轩灬 阅读(2064) 评论(0) 推荐(0)