摘要: Spring部分 1.声明bean的注解 @Component 组件,没有明确的角色 @Service 在业务逻辑层使用(service层) @Repository 在数据访问层使用(dao层) @Controller 在展现层使用,控制器的声明(C) 2.注入bean的注解 @Autowired: 阅读全文
posted @ 2020-06-10 11:35 xiren88 阅读(108) 评论(0) 推荐(0)