当前使用版本(必填,否则不予处理)

3.5.3.1

该问题是如何引起的?(确定最新版也有问题再提!!!)

com.baomidou.mybatisplus.generator.engine.AbstractTemplateEngine#outputCustomFile 这里的替换应该是将包名里面的“.”替换成文件分隔符“/” MyBatis-Plus 生成器:路径替换将原有的“.”替换成了文件分隔符“/” 改成

protected void outputCustomFile(@NotNull List<CustomFile> customFiles, @NotNull TableInfo tableInfo, @NotNull Map<String, Object> objectMap) {
        String entityName = tableInfo.getEntityName();
        String parentPath = getPathInfo(OutputFile.parent);
        customFiles.forEach(file -> {
            String filePath = StringUtils.isNotBlank(file.getFilePath()) ? file.getFilePath() : parentPath;
            if (StringUtils.isNotBlank(file.getPackageName())) {
                filePath = filePath + File.separator + file.getPackageName().replaceAll("\\.", StringPool.BACK_SLASH + File.separator);
            }
            String fileName = filePath + File.separator + entityName + file.getFileName();
            outputFile(new File(fileName), objectMap, file.getTemplatePath(), file.isFileOverride());
        });
    }

重现步骤(如果有就写完整)

指定的OutputFile的filePath中带有”.“,如:E:/ws/code-generator-3.0/src/main/java

报错信息

无报错信息,生成的路径变成了:E:/ws/code-generator-3/0/src/main/java 我想要的是:E:/ws/code-generator-3.0/src/main/java