About 49,500 results
Open links in new tab
  1. Guide to Spring @Autowired - Baeldung

    Feb 15, 2024 · 1. Overview Starting with Spring 2.5, the framework introduced annotations-driven Dependency Injection. The main annotation of this feature is @Autowired. It allows Spring to resolve …

  2. Using @Autowired :: Spring Framework

    Only one constructor of any given bean class may declare @Autowired with the required attribute set to true, indicating the constructor to autowire when used as a Spring bean.

  3. Spring @Autowired Annotation - GeeksforGeeks

    Jul 23, 2025 · The @Autowired annotation in Spring marks a constructor, setter method, property, or configuration method to be autowired. This means that Spring will automatically inject the required …

  4. java - Understanding Spring @Autowired usage - Stack Overflow

    Oct 17, 2013 · The @Autowired annotation tells Spring where an injection needs to occur. If you put it on a method setMovieFinder it understands (by the prefix set + the @Autowired annotation) that a …

  5. Spring Says Goodbye to @Autowired: Here’s What to Use Instead

    Feb 21, 2025 · What is @Autowired? Before we discuss why Spring no longer recommends @Autowired, let's take a quick look at what it does. @Autowired is used in Spring to inject …

  6. How To Simplify Dependency Injection with @Autowired

    Jun 30, 2019 · Spring provides a way to automatically detect the relationships between various beans. This can be done by declaring all the bean dependencies in Spring configuration file. So, Spring is …

  7. @Autowired in Spring Boot. Introduction - Towards Dev

    Feb 10, 2025 · @Autowired is a Spring annotation used for dependency injection. It allows Spring to automatically wire (connect) beans together. Instead of manually specifying dependencies in XML …

  8. Spring - Autowiring - GeeksforGeeks

    Jul 23, 2025 · To enable Autowiring in the Spring application we should use @Autowired annotation. Autowiring in Spring internally uses constructor injection. An autowired application requires fewer …

  9. Autowired (Spring Framework 7.0.0 API)

    Marks a constructor, field, setter method, or config method as to be autowired by Spring's dependency injection facilities. This is an alternative to the JSR-330 Inject annotation, adding required-vs-optional …

  10. Autowired In Spring Boot: Examples & Types

    Oct 30, 2025 · What is the @Autowired annotation and how does it work in Spring Boot? @Autowired is an annotation used by Spring to mark a dependency which Spring automatically resolves and injects …