简体   繁体   English

如何在POM中输入MS Access JDBC驱动程序?

[英]How to enter MS access JDBC driver in POM?

I have to connect to MS Access database for the back end transactions. 我必须连接到MS Access数据库进行后端事务。 So i need to add the jdbc connector for this. 所以我需要为此添加jdbc连接器。 I am using Maven as the build tool, So so get the MS Access dependency from Maven repository what should I be entering the POM.xml? 我使用Maven作为构建工具,因此从Maven存储库获取MS Access依赖关系,我应该输入POM.xml吗? I tried on google search but could find relevent help. 我在Google搜索上尝试过,但可以找到相关的帮助。

Thanks. 谢谢。

Java provides a built in type 1 JDBC driver for ODBC data sources so you shouldn't need to add a Maven dependency for this. Java为ODBC数据源提供了内置的Type 1 JDBC驱动程序,因此您无需为此添加Maven依赖项。 See: How to connect java to Ms Access 2010? 请参阅: 如何将Java连接到Ms Access 2010?

Alternatively you could use the Jackcess library by adding this dependency: 另外,您可以通过添加以下依赖项来使用Jackcess库

<dependency>
  <groupId>com.healthmarketscience.jackcess</groupId>
  <artifactId>jackcess</artifactId>
  <version>1.2.12</version>
  <type>jar</type>
</dependency>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM