修正mapper.xml生成时modulePath不正确问题

This commit is contained in:
ChaiQS 2020-08-06 09:35:34 +08:00
parent 6c240464a1
commit be2e582f91
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}