论spring的零配置与XML配置
DOI:
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

基金项目:

陕西省自然科学基金(2012GQ8050)


Introduction to Spring Zero Configurationand XML Configurationand
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 增强出版
  • |
  • 文章评论
    摘要:

    从多方面比较了Spring框架的XML配置和零配置方式的好处与不足, 总结在实际开发中应如何灵活使用两种配置方式, 以提高项目开发的效率. 首先分别介绍了Spring框架的XML配置和零配置, 其次举例说明了如何通过XML配置和零配置实现Spring的依赖注入功能, 然后从Spring框架的骨骼架构和设计理念方面分析了XML配置相对零配置的优势. 实践结果表明, 在实际应用的开发期间应采用零配置方式, 而在开发后期, 项目功能完成时, 应将零配置转换为XML配置, 禁用零配置, 从而显著提高项目开发的效率.

    Abstract:

    The benefits and shortcomings of XML configuration and zero configuration of the Spring Framework is compared from several aspects. How to use two configurations flexible in the actual development is summarized to improve the efficiency of project development. Firstly, XML configuration and zero configuration of the Spring Framework is introduced. Secondly, how to implement dependency injection of the Spring Framework is illustrated through XML configuration and zero configuration. Then, the relative advantages of XML configuration to zero-configuration is analyzed from bone architecture and design aspects of the Spring framework. Practice results show that the zero configuration should be used during the development of practical application. And late in the development, when the function of the project is completed, zero configuration should be converted to XML configuration, disable zero configuration. Thus, the efficiency of project development will be improved significantly.

    参考文献
    相似文献
    引证文献
引用本文

张文宇,许明健,薛昱.论spring的零配置与XML配置.计算机系统应用,2015,24(2):270-275

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2014-06-17
  • 最后修改日期:2014-09-09
  • 录用日期:
  • 在线发布日期: 2015-03-04
  • 出版日期:
您是第位访问者
版权所有:中国科学院软件研究所 京ICP备05046678号-3
地址:北京海淀区中关村南四街4号 中科院软件园区 7号楼305房间,邮政编码:100190
电话:010-62661041 传真: Email:csa (a) iscas.ac.cn
技术支持:北京勤云科技发展有限公司

京公网安备 11040202500063号