spingboot获得ioc容器
本博客参考链接 https://www.cnblogs.com/nongzihong/p/11350308.html 我的工具类 package com . iot . donation . util ; import org . springframework . beans . BeansException ; import org . springframework . beans . factory . InitializingBean ; import org . springframework . context . ApplicationContext ; import org . springframework . context . ApplicationContextAware ; import org . springframework . stereotype . Component ; /** * @Author 张满 * @Description 获得ApplicationContext * @Date 2020/1/1 0:08 * @vsersion 1.0.0 **/ @Component public final class SpringUtils implements ApplicationContextAware ,