How maven import sql server driver (jar package)

  1. Select the File option, then click the Project Structure;

Here Insert Picture Description
2. Modules and then select Options, then click the + sign on the right; Here Insert Picture Description
3. Finally, select Library-> java, can be introduced.

Here Insert Picture Description
Note, do not forget to add a dependency in pom.xml file:

            <dependency>
              <groupId>com.microsoft.sqlserver</groupId>
              <artifactId>sqljdbc4</artifactId>
              <version>4.0</version>
            </dependency>
Published 21 original articles · won praise 10 · views 8103

Guess you like

Origin blog.csdn.net/weixin_44997483/article/details/92597126
Recommended