1.在IDEA中添加 jar
2. 添加不同maven 依赖
<dependency> <groupId>com.microsoft.sqlserver</groupId> <artifactId>mssql-jdbc</artifactId> </dependency> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> <version>3.4.1</version> </dependency>
https://www.cnblogs.com/yuzhengya/p/11715542.html