Just getting started in Spring and my preference is XML config over annotations. Correct or not?
Posted
by
John Munsch
on Programmers
See other posts from Programmers
or by John Munsch
Published on 2012-05-23T13:53:29Z
Indexed on
2012/06/29
21:24 UTC
Read the original article
Hit count: 273
After having read through some of the Spring docs my inclination is towards using a XML config file rather than annotations on the classes themselves. My reasoning is that by doing so you avoid tying your POJOs to a particular framework.
Based on your experience with Spring, are there any advantages that XML configuration have over an annotation based configuration, and if not what are the disadvantages?
© Programmers or respective owner