9

Once I sent an email to a coleague asking what is the diff between @Resource and @Autowired annotations.
A simple google qry would have handed me the answer right away..

Comments
  • 0
    Question actually. I thought Autowired was discouraged because it doesn't make dependencies obvious.

    Instead should pass in these objects in the class constructor?

    Not sure about resources but was thinking the same? Should explicitly pass them in from the Configuration class?
Add Comment