• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Getting Started WIth Spring Framework: Use of XML?

 
Ranch Hand
Posts: 35
3
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Many companies nowadays are still using xml configuration over annotations, saying it is better to get an overall feel of the application when it is all in the same place.
In your own opinion, which one do you think is best for big enterprise applications?
Should they stick with xml or is it worth it to move to annotations?

Thanks guys!
 
author
Posts: 469
20
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Felipe,

Currently there are 3 possible approaches to configure your Spring applications: XML, annotations, Java code. The preferred one has been XML for large enterprise applications because it provides an overall structure of the application. But now many developers prefer Java-based configuration (with bare minimum XML) because it is more natural and strongly typed. In the end, all approaches have their pros and cons. I'd recommend that you should pick one of the approaches that you feel comfortable with and follow it consistently throughout your application. Mixing different approaches can make it very difficult for anyone to understand your application.

regards,
ashish
reply
    Bookmark Topic Watch Topic
  • New Topic