mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
Merge branch 'main' of https://gitee.com/mybatis-flex/mybatis-flex
This commit is contained in:
commit
0150e517a6
@ -218,7 +218,7 @@ public class PackageConfig {
|
|||||||
*/
|
*/
|
||||||
public String getMapperXmlPath() {
|
public String getMapperXmlPath() {
|
||||||
if (StringUtil.isBlank(mapperXmlPath)) {
|
if (StringUtil.isBlank(mapperXmlPath)) {
|
||||||
return getSourceDir().concat("/resources/mapper");
|
return System.getProperty("user.dir").concat("/src/main/resources/mapper");
|
||||||
}
|
}
|
||||||
return mapperXmlPath;
|
return mapperXmlPath;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -107,7 +107,7 @@ public class GeneratorTest {
|
|||||||
//设置生成文件目录和根包
|
//设置生成文件目录和根包
|
||||||
globalConfig.getPackageConfig()
|
globalConfig.getPackageConfig()
|
||||||
.setSourceDir(System.getProperty("user.dir") + "/src/test/java")
|
.setSourceDir(System.getProperty("user.dir") + "/src/test/java")
|
||||||
.setMapperXmlPath(System.getProperty("user.dir") + "/src/test/java/resources/mapper")
|
.setMapperXmlPath(System.getProperty("user.dir") + "/src/test/resources/mapper")
|
||||||
.setBasePackage("com.test");
|
.setBasePackage("com.test");
|
||||||
|
|
||||||
//设置表前缀和只生成哪些表
|
//设置表前缀和只生成哪些表
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user