Springboot实现多线程注入bean的工具类
场景: 使用springboot多线程,线程类无法自动注入需要的bean,
解决方法: 通过工具类获取需要的bean
工具类代码:
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.con...
原创
2018-12-10 14:17:47 ·
2822 阅读 ·
0 评论