We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.5.10.1
官网文档中描述,自定义配置模版需要继承FreemarkerTemplateEngine并重写outputCustomFile方法,FreemarkerTemplateEngine并没有这个方法,只有FreemarkerTemplateEngine的父类AbstractTemplateEngine才有这个方法,其次,文档中这行String otherPath = this.getPathInfo(OutputFile.other); 现在这个版本跟本没有other这个枚举值。尝试重写AbstractTemplateEngine的outputCustomFile方法也不行,里面的outputFile的入参按照官网文档写的也不行
The text was updated successfully, but these errors were encountered:
直接这样就行.
FastAutoGenerator.create(url, username, password).injectionConfig(builder -> { builder.customFile(new CustomFile.Builder().fileName("DTO.java").templatePath("templates/dto.java.vm").packageName("dto").build()); })
Sorry, something went wrong.
自定义模板文件生成.
80c1189
baomidou/mybatis-plus#6694
No branches or pull requests
确认
当前程序版本
3.5.10.1
问题描述
官网文档中描述,自定义配置模版需要继承FreemarkerTemplateEngine并重写outputCustomFile方法,FreemarkerTemplateEngine并没有这个方法,只有FreemarkerTemplateEngine的父类AbstractTemplateEngine才有这个方法,其次,文档中这行String otherPath = this.getPathInfo(OutputFile.other); 现在这个版本跟本没有other这个枚举值。尝试重写AbstractTemplateEngine的outputCustomFile方法也不行,里面的outputFile的入参按照官网文档写的也不行
详细堆栈日志
The text was updated successfully, but these errors were encountered: