Is there some way to use @Autowired with static fields. If not, are there some other ways to do this?
@Autowired
In short, no. You cannot autowire or manually wire static fields in Spring. You'll have to write your own logic to do this.
2.1m questions
2.1m answers
60 comments
57.0k users