Is it mandatory to put @Autowired
if I am using constructor DI?
相关问题
- java.lang.IllegalArgumentException: Cannot set to
- Dependency injection into Logback Appenders with S
- Deserialize duplicate keys to list using Jackson
- How can I access the repository from the entity in
- Prevent Swagger from automatically adding some mod
相关文章
- How to load @Configuration classes from separate J
- Using Spring Dynamic Languages Support from Groovy
- Spring JMS : Set ErrorHandler for @JmsListener ann
- ModelMapper: Choose mapping based on Child class
- Configure Spring for CORS
- Remove transitive classpath dependency in gradle
- SpringBoot When file upload size limit exceeds get
- Can we add a feature module to an Angular app afte
No.
After Spring 4.3 If your class has only single constructor then there is no need to put
@Autowired
.