When running a static code analysis tool or inspecting/analyzing your code from your IDE, you may have encountered the following warning regarding your @Autowired fields: Field injection is not recommended. This post shows the alternatives to field injection and how to avoid this warning.Field injection is not recommended – Spring IOC2018-02-21 in Java tagged Dependency Injection / Inversion of control (IoC) / Java / SOLID / Spring Framework by Marc Nuri