获取 IoC 容器的原始对象 获取 Spring Boot 注入的对象的原始 class: 1 2 3 4 import org.springframework.aop.support.AopUtils; // 使用 Spring 自带工具实现 AopUtil.getTargetClass()