借助于ApplicationContextAware
https://blog.csdn.net/weixin_41558061/article/details/80839131
交给spring管理
https://www.cnblogs.com/jthr/p/13452534.html