从Olaf提供的链接下载驱动程序JAR,并将其添加到本地Maven存储库中;
mvn install:install-file -Dfile=sqljdbc4.jar-DgroupId=com.microsoft.sqlserver -DartifactId=sqljdbc4 -Dversion=4.0-Dpackaging=jar
然后将其添加到您的项目中;
<dependency> <groupId>com.microsoft.sqlserver</groupId> <artifactId>sqljdbc4</artifactId> <version>4.0</version></dependency>



