2019年3月14日
摘要: Spring部分 1.声明bean的注解 @Component 组件,没有明确的角色 @Service 在业务逻辑层使用(service层) @Repository 在数据访问层使用(dao层) @Controller 在展现层使用,控制器的声明(C) 2.注入bean的注解 @Autowired: 阅读全文
posted @ 2019-03-14 16:51 老迁 阅读(553) 评论(0) 推荐(0) 编辑