Annotations in web applications
I want to know why Annotations are preferred over XML in Struts2 A开发者_Go百科pplications?
It's easier to refactor code with annotations than refactor code and then find out you broke your application because you forgot to change the XML file. This is more of a general answer than just for Struts 2, though.
精彩评论