[b][size=medium]1. for spring-json (sojo-optional-0.5.0.jar)[/size][/b]
[size=small]add repository for spring-json (sojo-optional-0.5.0.jar) into pom.xml[/size]
[b][size=medium]2. for sqljdbc jar of SQL Server[/size][/b]
1) download maven tool (alone software, not for eclipse)
http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-2.2.1-bin.zip
2) unzip this zip file
3) enter into DOS window, walk into the 'bin' directory that contains the unzip file.
4) input the command below.
5) add jar into item of dependency into pom.xml
for sqljdbc.jar (SQLServer JDBC) , refer to attachment.
[size=small]add repository for spring-json (sojo-optional-0.5.0.jar) into pom.xml[/size]
<repository>
<id>Spring json</id>
<url>http://spring-json.sourceforge.net/repository</url>
</repository>
[b][size=medium]2. for sqljdbc jar of SQL Server[/size][/b]
1) download maven tool (alone software, not for eclipse)
http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-2.2.1-bin.zip
2) unzip this zip file
3) enter into DOS window, walk into the 'bin' directory that contains the unzip file.
4) input the command below.
mvn install:install-file -DgroupId=com.microsoft.sqlserver -DartifactId=sqljdbc -Dversion=1.0 -Dpackaging=jar -Dfile=E:\Server\lib\sqljdbc.jar5) add jar into item of dependency into pom.xml
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>sqljdbc</artifactId>
<version>1.0</version>
</dependency>
for sqljdbc.jar (SQLServer JDBC) , refer to attachment.
本文介绍如何配置SQL Server的JDBC驱动(sqljdbc.jar)及Spring JSON库(sojo-optional-0.5.0.jar)。主要内容包括下载Maven工具、安装SQL Server JDBC驱动至本地仓库、将驱动添加到pom.xml文件中,以及添加Spring JSON库的仓库。
3881

被折叠的 条评论
为什么被折叠?



