mirror of
https://github.com/CarmJos/MineSQL.git
synced 2026-06-04 16:43:03 +08:00
fix(load): 修复插件加载时出现的问题
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user