Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Disadvantages of spring annotations

 
Mary Cole
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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

Thanks
 
Saifuddin Merchant
Ranch Hand
Posts: 607
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic