Pankaj Shet wrote:Hi Craig,
Spring in Action is concentrated on which approach?
Annotation based approach or XML based approach?
I am used Xml based configurations and would like to learn annotation based approach.
Which version of spring does it cover?
I am a big fan of "in Action" series.
Hopefully I am one of the fortunate winners
Pankaj Shet wrote:Thanks for your Reply Craig, but I don't understand, why annotation based configurations are given more importance now-a days..
Maintainece is more easier in XML than in annotation based configs, as if any changes come in the project, we don't have recompile the java code when using XML,
but we do need to recompile when using Annotation based approach.
So what are the advantages of annotations over XML based approach?
One is ease of use, what are the others?
I will not go for annotations just because we are signed up to write a code in java...
it's a bad idea to externalize all of it (it leaves open the possibility of someone screwing up the config post-build).
Bill Gorder wrote:Ill add one more more to the pile. I just love being able to set breakpoints within my @Bean configuration without combing through the XML parsing code to find out where I need to set it