feat: 代码生成默认包名
This commit is contained in:
@@ -100,6 +100,9 @@ public class GeneratorServiceImpl implements GeneratorService {
|
|||||||
String entityName = StrUtil.toCamelCase(StrUtil.removePrefix(tableName, tableName.split("_")[0]));
|
String entityName = StrUtil.toCamelCase(StrUtil.removePrefix(tableName, tableName.split("_")[0]));
|
||||||
genConfig.setEntityName(entityName);
|
genConfig.setEntityName(entityName);
|
||||||
|
|
||||||
|
String packageName = SystemApplication.class.getPackageName();
|
||||||
|
genConfig.setPackageName(packageName);
|
||||||
|
|
||||||
genConfig.setAuthor(generatorProperties.getDefaultConfig().getAuthor());
|
genConfig.setAuthor(generatorProperties.getDefaultConfig().getAuthor());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user