摘要:
AOP AOP联盟标准 AOP联盟将AOP体系分为三层,从三层结构可以看出,AOP实现方式有很多种,包括反射、元数据处理、程序处理、拦截器处理等,通过本节学习,你就会看到Spring AOP的实现使用的是Java语言本身的特性,即Java Proxy代理类、拦截器技术实现。 AOP简介 概念 切面( 阅读全文
摘要:
前面说到对象的创建,那么在创建的过程中Spring是怎么又是如何解决循环依赖的呢。前面提到有个三级缓存。就是利用这个来解决循环依赖。打个比方说实例化A的时候,先将A创建(早期对象)放入一个池子中。这个时候虽然属性没有赋值,但是容器已经能认识这个是A对象,只是属性全是null而已。在populateB 阅读全文
摘要:
184. 部门工资最高的员工 select d.Name as Department, e.Name as Employee, e.Salary from Employee e,Department d where e.DepartmentId=d.id and (e.Salary,e.Depart 阅读全文
摘要:
# 498ms select c.Name as Customers from Customers c left join Orders o on o.CustomerId = c.Id where o.Id is null; # 532ms select c.Name as Customers f 阅读全文
摘要:
select a.Name as Employee from employee a left join employee b on b.id = a.managerID where a.Salary > b.Salary 阅读全文
摘要:
select distinct a.Num as ConsecutiveNums from Logs as a,Logs as b,Logs as c where a.Num=b.Num and b.Num=c.Num and a.id=b.id-1 and b.id=c.id-1; 阅读全文
摘要:
class Solution { public String largestNumber(int[] nums) { String[] numStrs = new String[nums.length]; for(int i = 0; i < nums.length; ++ i) { numStrs 阅读全文
摘要:
SELECT Score, dense_rank() over(order by Score desc) as 'Rank' FROM Scores 阅读全文
摘要:
select ifnull ( (select distinct Salary from Employee order by Salary desc limit 1,1), null )as 'SecondHighestSalary' 编写一个 SQL 查询,获取 Employee 表中第二高的薪水 阅读全文