摘要:
class Solution { public int longestConsecutive(int[] nums) { Set<Integer>set=new HashSet<>(); for(int num:nums){ set.add(num); } int ans=0; for(int x: 阅读全文
摘要:
核心特性 IOC容器:控制反转;AOP面向切面编程;事务管理;MVC框架 依赖注入:把对象创建和依赖的关系交给Spring,常见的有构造方法注入,setter注入,还有字段通过这个@Autowired注入 Spring IOC 传统开发过程中,我们需要通过new关键字来创建对象。应用程序不在控制对象 阅读全文