Explain the @Autowired notation and usage (part of Spring) @Autowired private Validator validator; @Autowired private DeviceManagementStorageManager storageManager;
1 Answers
This question is part of spring framework . But in simple term autowired is in applicationContext.xml Its a similar and advance version of autowire which was in XML file and now we can use same autowired concept by annotation To specify what property is linked Please look into this example for detailed information. https://examples.javacodegeeks.com/enterprise-java/spring/beans-spring/spring-autowire-example/