java.lang.IllegalStateException: Autowired annotation is not supported on static fields

Autowired spring中的注解,不能用于静态的变量。

解决办法:

去掉注解,改成get、set方法。

 

相关文章:

  • 2022-12-23
  • 2021-04-07
  • 2022-12-23
  • 2021-10-28
  • 2021-06-20
  • 2021-12-01
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-06
  • 2021-05-04
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案