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

@Autowired

注释static 变量会失败。

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

posted @ 2021-04-01 15:30  wsZzz1997  阅读(110)  评论(0)    收藏  举报