File tree Expand file tree Collapse file tree 4 files changed +1914
-1734
lines changed
APIJSON-Java-Server/APIJSONBoot-MultiDataSource Expand file tree Collapse file tree 4 files changed +1914
-1734
lines changed Original file line number Diff line number Diff line change 102102 <artifactId >taos-jdbcdriver</artifactId >
103103 <version >2.0.38</version >
104104 </dependency >
105+
106+ <dependency >
107+ <groupId >org.nebula-contrib</groupId >
108+ <artifactId >nebula-jdbc</artifactId >
109+ <version >3.0.0</version >
110+ </dependency >
105111 <!-- Oracle, SQLServer 等其它数据库的 JDBC 驱动,可以在这里加上 Maven 依赖或 libs 目录放 Jar 包并依赖 -->
106112 <!-- 数据库 JDBC 驱动 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> -->
107113
Original file line number Diff line number Diff line change @@ -154,6 +154,15 @@ public void addCorsMappings(CorsRegistry registry) {
154154 Log .e (TAG , "加载 TDengine 驱动失败,请检查 pom.xml 中 com.taosdata.jdbc 版本是否存在以及可用 !!!" );
155155 }
156156
157+ try { //加载驱动程序
158+ Log .d (TAG , "尝试加载 NebulaGraph 驱动 <<<<<<<<<<<<<<<<<<<<< " );
159+ Class .forName ("com.vesoft.nebula.jdbc.impl.NebulaDriver" );
160+ Log .d (TAG , "成功加载 NebulaGraph 驱动!>>>>>>>>>>>>>>>>>>>>> " );
161+ } catch (ClassNotFoundException e ) {
162+ e .printStackTrace ();
163+ Log .e (TAG , "加载 NebulaGraph 驱动失败,请检查 pom.xml 中 org.nebula-contrib 版本是否存在以及可用 !!!" );
164+ }
165+
157166 // APIJSON 配置 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
158167
159168 Map <String , Pattern > COMPILE_MAP = AbstractVerifier .COMPILE_MAP ;
You can’t perform that action at this time.
0 commit comments