mirror of https://gitee.com/makejava/EasyCode.git
修正mapper.xml生成时modulePath不正确问题
This commit is contained in:
parent
6c240464a1
commit
be2e582f91
|
@ -36,7 +36,7 @@ public final class ModuleUtils {
|
|||
String modulePath = ModuleUtil.getModuleDirPath(module);
|
||||
int index = modulePath.indexOf(".idea");
|
||||
if (index > 0) {
|
||||
modulePath = modulePath.substring(0, index - 1);
|
||||
modulePath = modulePath.replace(".idea/modules/","");
|
||||
}
|
||||
return VirtualFileManager.getInstance().findFileByUrl(String.format("file://%s", modulePath));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue