In short, no. You cannot autowire or manually wire static fields in Spring. You’ll have to write your own logic to do this.
More Related Contents:
- Why is my Spring @Autowired field null?
- Understanding Spring @Autowired usage
- Spring: @Component versus @Bean
- How does autowiring work in Spring?
- @Resource vs @Autowired
- @Autowired bean is null when referenced in the constructor of another bean
- What is the difference between @Inject and @Autowired in Spring Framework? Which one to use under what condition?
- Spring Autowiring class vs. interface?
- Understanding spring @Configuration class
- How to Autowire Bean of generic type in Spring?
- Autowiring two beans implementing same interface – how to set default bean to autowire?
- Autowired Environment is null
- Inject bean into enum
- Using Spring 3 autowire in a standalone Java application
- @Autowired and static method
- intellij incorrectly saying no beans of type found for autowired repository
- Injecting @Autowired private field during testing
- Spring @Autowired on a class new instance
- Can spring @Autowired Map?
- Missing CrudRepository#findOne method
- How to reload authorities on user update with Spring Security
- Where to put @Transactional? In interface specification or implementation? [duplicate]
- How To Configure MongoDb Collection Name For a Class in Spring Data
- Unable to get a generic ResponseEntity where T is a generic class “SomeClass”
- How is Spring actually bootstrap?
- AspectJ pointcut expression match parameter annotations at any position
- FetchMode join makes no difference for ManyToMany relations in spring JPA repositories
- How to secure REST API with Spring Boot and Spring Security?
- Spring MVC PATCH method: partial updates
- Bean definition inheritance with annotations?