Posted 2020-08-10coding30 minutes read (About 4561 words)面向切面编程(AOP)AOP,Aspect Oriented Programming,也叫面向切片编程,是一种编程范式。网上对于AOP的解释都比较繁琐,简单来讲,AOP能通过代理模式对已有的模块进行增强,动态地将代码切入到某个类的指定位置上的思想就是面向切面的编程。Read more
Posted 2020-07-20coding41 minutes read (About 6183 words)控制反转和依赖注入学Spring的时候,接触到两个比较重要的概念,一个是IoC(Inversion of Control),控制反转;一个是DI(Dependency Injection),依赖注入。Read more
Posted 2020-07-12coding19 minutes read (About 2830 words)Java反射Java的反射机制可以让我们在程序运行时动态构建一个对象,获取对象的属性、构造器以及方法。反射会破坏Java代码的封装性,所以一般只用于框架中。反射用得好,能把JVM掀个底朝天(bushiRead more