mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-08 01:28:24 +08:00
fixed d44a6c8 from https://gitee.com/Suomm/mybatis-flex/pulls/188
feat: 支持为生成文件指定字符集。
This commit is contained in:
parent
e48db9347c
commit
c0f305a7fe
@ -45,7 +45,6 @@ import java.io.PrintWriter;
|
||||
import java.io.Writer;
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
||||
import java.nio.file.Files;
|
||||
import java.sql.Time;
|
||||
import java.sql.Timestamp;
|
||||
import java.time.*;
|
||||
@ -383,7 +382,7 @@ public class MybatisFlexProcessor extends AbstractProcessor {
|
||||
return;
|
||||
}
|
||||
|
||||
writer = new PrintWriter(Files.newOutputStream(genJavaFile.toPath()));
|
||||
writer = new PrintWriter(genJavaFile, configuration.get(ConfigurationKey.CHARSET));
|
||||
writer.write(genContent);
|
||||
writer.flush();
|
||||
} catch (IOException e) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user