Why were annotations introduced in Spring and Hibernate?

Posted by Chandrashekhar on Programmers See other posts from Programmers or by Chandrashekhar
Published on 2012-06-01T11:08:55Z Indexed on 2012/06/01 16:49 UTC
Read the original article Hit count: 302

Filed under:
|
|

I would like to know why were annotations introduced in Spring and Hibernate? For earlier versions of both the frameworks book authors were saying that if we keep configuration in xml files then it will be easier to maintain (due to decoupling) and just by changing the xml file we can re-configure the application.

If we use annotations in our project and in future we want to re-configure application then again we have to compile and build the project.

So why were these annotations introduced in these frameworks? From my point of view annotations make the apps dependent on certain framework. Isn't it true?

© Programmers or respective owner

Related posts about spring

Related posts about hibernate