日期:2014-05-19  浏览次数:20552 次

关于HIbernate和Spring 使用annotation和xml配置问题
我想知道Hibernate Spring 配置 annotation 与 xml 用哪个更好 或者总体而言现在一般的公司用哪种多些

------解决方案--------------------
annotation 有源代码用
xml 没源代码
------解决方案--------------------
没有好不好,annotation 开发速度比xml快,xml的维护比annotation 方便许多