我引入3.7.6这个版本的项目,运行出错
我引入maven项目,然后,修改dbconfig.properties把mysql的链接修改成sqlserver的链接。然后在pom.xml,把mysql的修改为sqlserver的<!-- druid连接池--> <dependency><groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>${druid.version}</version>
<scope>runtime</scope>
</dependency>
<!--mysql -->
<!-- <dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql.version}</version>
<scope>runtime</scope>
</dependency> -->
<!-- sqlserver 2008 -->
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>sqljdbc4</artifactId>
<version>${sqlserver.version}</version>
<scope>runtime</scope>
</dependency>,运行提示找不到驱动包com.microsoft.sqlserver.jdbc.SQLServerDriver
页:
[1]