Browse Source

Merge branch 'master' of Munin/demo-driver-loader into master

master
richie 6 years ago committed by Gogs
parent
commit
4799bed84b
  1. 1
      plugin.xml
  2. 2
      src/main/java/com/fr/plugin/dialect/classloader/ClassLoaderHandler.java

1
plugin.xml

@ -11,6 +11,7 @@
[2019-05-16]初始化。<br/>
[2019-05-20]优化逻辑。<br/>
[2019-05-30]实现一个可用的ClassLoader。<br/>
[2019-05-31]修改Mysql的key为Hive。<br/>
]]></change-notes>
<main-package>com.fr.plugin.dialect.classloader</main-package>
<extra-core>

2
src/main/java/com/fr/plugin/dialect/classloader/ClassLoaderHandler.java

@ -24,7 +24,7 @@ public class ClassLoaderHandler extends AbstractDataSourceDriverLoader {
public static final String DRIVER_LIB_DIR = "driverlib";
//demo设置为mysql为目标驱动
private static final String DRIVER_NAME_KEY = "com.mysql.jdbc.Driver";
private static final String DRIVER_NAME_KEY = "org.apache.hive.jdbc.HiveDriver";
@Focus(id = "com.fr.plugin.dialect.classloader.ClassLoaderHandler", text = "", source = Original.PLUGIN)
public boolean isInterceptAllowed(String driverName) {

Loading…
Cancel
Save