fileOverride() //覆盖之前的文件 .enableSwagger() //开启 swagger 模式 .disableOpenDir(); //禁止打开输出目录,默认打开 }) //3、包配置 .packageConfig(builder -> { builder.parent(parent) // 设置父包名 .moduleName(module) //设置模块包名 .entity("entity") //pojo 实体类包名 .service("...
useUnicode=true&useSSL=false&characterEncoding=utf8","root","root").globalConfig(builder->{builder.author("springBoot-Learning")// 设置作者//.enableSwagger() // 开启 swagger 模式.fileOverride()// 覆盖已生成文件.outputDir(System.getProperty(...
// 自定义输出配置 List<FileOutConfig> focList = new ArrayList<FileOutConfig>(); // 自定义配置会被优先输出 focList.add(new FileOutConfig(templatePath) { @Override public String outputFile(TableInfo tableInfo) { // 自定义输出文件名 , 如果你 Entity 设置了前后缀、此处注意 xml 的名称会跟着...
val); return (This)this; } @Override public This gt(boolean condition, R column, Object val) { String fileName = columnToString((SFunction)
{"activeRecord":false,"author":"codeGenerator","baseColumnList":false,"baseResultMap":false,"controllerName":null,"enableCache":false,"entityName":null,"fileOverride":false,"kotlin":false,"mapperName":null,"open":false,"outputDir":"src/main/java","serviceImplName":null,"serviceName":null,...
.fileOverride() .disableOpenDir() .outputDir(projectPath)) .packageConfig(builder -> { builder.parent(parent); if (StrUtil.isNotBlank(moduleName)) builder.moduleName(moduleName); builder.pathInfo(Collections.singletonMap(OutputFile.mapperXml, System.getProperty("user.dir") + "/src/main/resources...
@Override public String outputFile(TableInfo tableInfo) { // 自定义输入文件名称 return "D://workspace/study/springboot_mybatisplus_lombok/src/main/webapp/" + tableInfo.getEntityName() + ".jsp"; } }); cfg.setFileOutConfigList(focList); ...
/*** 注入单点 crudSql*/@Overridepublicvoidinject(MapperBuilderAssistant builderAssistant, Class<?>mapperClass) {this.configuration =builderAssistant.getConfiguration();this.builderAssistant =builderAssistant;this.languageDriver =configuration.getDefaultScriptingLanguageInstance();//去除 驼峰设置 PLUS 配置 > ...
at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:89) at com.sun.proxy.$Proxy141.updateMenu(Unknown Source) at com.acfic.system.service.impl.SysMenuServiceImpl.updateMenu(SysMenuServiceImpl.java:299) ...
@Override public String outputFile(TableInfo tableInfo) { // 自定义输出文件名 , 如果你 Entity 设置了前后缀、此处注意 xml 的名称会跟着发生变化!! return projectPath + "/src/main/resources/mapper/" + "/" + tableInfo.getEntityName() + "Mapper" + StringPool.DOT_XML; ...