spring hibernate 连接sqlserver 数据库的时候还需要jdbc包吗?

1、介绍-首先查看微软官方对jdbc的介绍。

https://msdn.microsoft.com/zh-cn/data/aa937724.aspx

Microsoft JDBC Driver for SQL Server

In our continued commitment to interoperability, Microsoft provides a Java Database Connectivity (JDBC) driver for use with SQL Server, SQL Azure, and Parallel Data Warehouse (PDW). The Microsoft JDBC Driver for SQL Server is available at no additional charge, and provides Java Database Connectivity from any Java application, application server, or Java-enabled applet. This driver is a Type 4 JDBC driver that provides database connectivity through the standard JDBC application program interfaces (APIs).

The Microsoft JDBC Driver for SQL Server has been tested against major application servers such as IBM WebSphere, and SAP NetWeaver.

ok,我们理解了,jdbc提供了一系列的接口用于数据库操作。实际上hibernate只是一种ORM的框架实现。他要想完成对数据库的操作也需要通过调用JDBC的API来实现。

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。