一、前言 文章模仿Spring对于IOC和AOP的处理思路,自定义注解实现了对bean的扫描、依赖注入和事务管理。实现思路大体如下: 二、具体实现 <!--核心依赖文件 --> <dependency> <groupId>org.reflections</groupId> <artifactId>