File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Spring and the fly likes Disadvantages of spring annotations Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Disadvantages of spring annotations" Watch "Disadvantages of spring annotations" New topic

Disadvantages of spring annotations

Mary Cole
Ranch Hand

Joined: Dec 02, 2000
Posts: 362

can somebody outline the disadvantages of spring annotations compared to declaring it in the XML file

Saifuddin Merchant
Ranch Hand

Joined: Feb 08, 2009
Posts: 607

These aren't too many disadvantages of annotations over XML and vice versa.

Usually selecting one over the other is just a matter of what the team is comfortable with.

There are a few limitation to what annotation and configuration classes can do - for which you might have fall back on XML.

Google might give a few more details - spring annotations vs xml

Cheers - Sam.
Twisters - The new age Java Quiz || My Blog
I agree. Here's the link:
subject: Disadvantages of spring annotations
It's not a secret anymore!