October 2018
Intermediate to advanced
590 pages
15h 5m
English
With the @Autowired annotation, you can apply it directly to a field. In this way, you don't need to declare a setter method for it, as in the following:
@Autowiredprivate MessageRepository repository;
Other annotations: Besides the built-in annotations, @Required and @Autowired, Spring also supports the @javax.annotation.Resource annotation specified in JSR-250 and the @javax.inject.Inject annotation from JSR-330.
Read now
Unlock full access