摘要
Spring框架采用依赖注入方式实现了组件的解耦,提高了组件的重用性。Spring的ORM和DAO提供了与第三方持久层框架的良好整合,简化了底层的数据库访问,降低了持久化层的开发难度。文中分析比较了两种Java常用数据库访问技术以及在开发中的缺点,研究了基于Spring框架的数据库访问的实现机制,该技术在持久化层的实现中,降低了开发难度、提高了软件的可移植性。
Spring framework is adopted to realize the decoupling of components and improves the reuse of components. Spring's ORM and DAO provide a good integration with the third party persistence layer framework,simplify the access to the underlying database,and reduce the development difficulty of the persistence layer. This paper analyzes and compares the two kinds of Java access technology and the shortcomings in the development,and studies on the realization mechanism of database access based on Spring framework,which can reduce the difficulty of development and improve the portability of software.
出处
《信息技术》
2016年第10期81-84,共4页
Information Technology
基金
西安航空学院2014年度校级高等教育教学改革研究项目(2014Z010)