mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-06 16:48: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() {
|
||||
if (StringUtil.isBlank(mapperXmlPath)) {
|
||||
return getSourceDir().concat("/resources/mapper");
|
||||
return System.getProperty("user.dir").concat("/src/main/resources/mapper");
|
||||
}
|
||||
return mapperXmlPath;
|
||||
}
|
||||
|
||||
@ -86,7 +86,7 @@ public class GeneratorTest {
|
||||
generator.generate();
|
||||
}
|
||||
|
||||
// @Test
|
||||
// @Test
|
||||
public void testCodeGen2() {
|
||||
//配置数据源
|
||||
HikariDataSource dataSource = new HikariDataSource();
|
||||
@ -107,7 +107,7 @@ public class GeneratorTest {
|
||||
//设置生成文件目录和根包
|
||||
globalConfig.getPackageConfig()
|
||||
.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");
|
||||
|
||||
//设置表前缀和只生成哪些表
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user