fix: mapper xml 默认生成路径错误。

This commit is contained in:
Suomm 2023-07-28 18:37:06 +08:00
parent 572733dccd
commit 93b466505f

View File

@ -218,7 +218,7 @@ public class PackageConfig {
*/
public String getMapperXmlPath() {
if (StringUtil.isBlank(mapperXmlPath)) {
return getSourceDir().concat("/resources/mapper");
return System.getProperty("user.dir").concat("/src/main/resources/mapper");
}
return mapperXmlPath;
}