mybatis-plus-generator-ui icon indicating copy to clipboard operation
mybatis-plus-generator-ui copied to clipboard

自定义dtl模板如果不重写customFileNameConvert,无法生成java类

Open HC99520 opened this issue 6 months ago • 1 comments

@Override public String customFileNameConvert(String fileType, String entityName) { System.out.println("Custom file name convert: " + fileType + ", " + entityName); if (fileType.endsWith(".java")) { return entityName + fileType; } else { return entityName + fileType + ".java"; } } 这样才能生成java类,不然是txt文件

HC99520 avatar May 13 '25 09:05 HC99520

你发的邮件已经收到! Thanks with Best regards,

testfengjing avatar May 13 '25 09:05 testfengjing