摘要:
1. @Repository 将 DAO 类声明为 Bean 2.@Component 是一个泛化的概念,仅仅表示一个组件 (Bean) ,可以作用在任何层次。 3.@Service 通常作用在业务层,但是目前该功能与 @Component 相同。 4.@Constroller 通常作用在控制层,但 阅读全文
摘要:
public class DepartmentUtils { /** * @param topList 顶级部门列表 * @param removeId 删除部门的id * @return */ public static List<Department> getTreeList(List<Depa 阅读全文