工具类中使用@Autowired失败问题

@Autowired

注释static 变量会失败。

应该注释set方式,在set方法里赋值才能成功。

原文地址:https://www.cnblogs.com/wsZzz1997/p/14606568.html