Spring boot @Autowired注解在非Controller中注入为null 参考链接:https://blog.csdn.net/qq_35056292/article/details/78430777 说明:所有内容仅做学习记录