1
mirror of https://github.com/CarmJos/MineSQL.git synced 2026-06-04 16:43:03 +08:00

fix(load): 修复插件加载时出现的问题

This commit is contained in:
2022-12-18 03:58:46 +08:00
parent b554f799ef
commit 708d3f8f3f
17 changed files with 132 additions and 57 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
<parent>
<artifactId>minesql-parent</artifactId>
<groupId>cc.carm.plugin</groupId>
<version>0.0.3-SNAPSHOT</version>
<version>1.0.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
@@ -27,7 +27,11 @@ public class FileBasedConfig extends SQLDriverConfig {
@Override
public SQLSourceConfig createSource() {
File file = new File(MineSQL.getDataSourceFolder(), filePath);
return SQLSourceConfig.create(getType().getDriverClass(), file.getAbsolutePath(), getType().getInitializer());
return SQLSourceConfig.create(
getType().getDriverClass(),
getType().getJdbcPrefix() + file.getAbsolutePath(),
getType().getInitializer()
);
}
@Override