摘要: Spring部分 1、声明bean的注解 @Component 组件,没有明确的角色 @Service 在业务逻辑层使用(service层) @Repository 在数据访问层使用(dao层) @Controller 在展现层使用,控制器的声明(C) 2、注入bean的注解 @Autowired: 阅读全文
posted @ 2019-02-17 23:04 Derek_Cheng 阅读(3968) 评论(1) 推荐(2) 编辑