解决generator.yml中文乱码问题

This commit is contained in:
dataprince 2023-07-09 20:52:59 +08:00
parent 256095f3f0
commit 5b84e109bf

View File

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