fix 修复 读取 generator.yml 中文乱码问题

This commit is contained in:
疯狂的狮子li 2022-12-06 10:51:58 +08:00
parent 9ebe1ae918
commit 2790b5ddc4

View File

@ -12,7 +12,7 @@ import org.springframework.stereotype.Component;
*/ */
@Component @Component
@ConfigurationProperties(prefix = "gen") @ConfigurationProperties(prefix = "gen")
@PropertySource(value = {"classpath:generator.yml"}) @PropertySource(value = {"classpath:generator.yml"}, encoding = "UTF-8")
public class GenConfig { public class GenConfig {
/** /**