NK3C框架连接SQL Server修改配置如下:
1、添加POM引用
<sqlserver.driver.version>4.0</sqlserver.driver.version>
<!-- sql server driver -->
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>sqljdbc4</artifactId>
<version>${sqlserver.driver.version}</version>
<scope>runtime</scope>
</dependency>
2、修改db.properties配置
desc.dbType=sqlserver
pool.url=jdbc:sqlserver://192.168.1.161:1433;DatabaseName=cati3
pool.validationQuery=
pool.url=jdbc:sqlserver://192.168.1.161:1433;DatabaseName=cati3
pool.validationQuery=