View Poll Results: Which of the following are you using for Spring Dependency Injection?

Voters
1. You may not vote on this poll
  • XML configurations

    0 0%
  • Spring Annotations

    1 100.00%
  • JSR-250 Annotations

    0 0%
  • JSR-330 Annotations

    0 0%
Multiple Choice Poll.
Results 1 to 2 of 2
  1. #1
    roniyyy is offline Member
    Join Date
    Mar 2017
    Posts
    1
    Rep Power
    0

    Default Spring Dependency Injection - xml vs annotations - common practice

    Hi,

    Are you using Spring Dependency Injection with XML configurations or Java annotations (or both)?
    I have read the pros & cons, just want to know what is the common practice.

    Thanks!

  2. #2
    benji2505 is offline Senior Member
    Join Date
    Sep 2014
    Location
    MA, USA
    Posts
    398
    Rep Power
    5

    Default Re: Spring Dependency Injection - xml vs annotations - common practice

    the answer is probably dependent on the organization and the application, but I'd say Spring annotations are the most commonly used method for DI.

Similar Threads

  1. IOC or Dependency Injection
    By james12 in forum Spring
    Replies: 0
    Last Post: 07-25-2014, 01:57 PM
  2. Replies: 0
    Last Post: 03-30-2008, 10:09 AM
  3. What are dependency injection and its advantages
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-29-2008, 12:36 PM
  4. Replies: 0
    Last Post: 09-26-2007, 08:40 PM
  5. What are dependency injection and its advantages
    By JavaBean in forum Java Tip
    Replies: 0
    Last Post: 09-26-2007, 08:27 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •