注解添加utf-8参数

This commit is contained in:
dcrenl 2023-09-07 08:47:28 +08:00
parent a41000d12a
commit 8415c42750

View File

@ -41,7 +41,7 @@ import org.springframework.core.io.ResourceLoader;
* @see io.spring.initializr.web.autoconfigure.InitializrAutoConfiguration
*/
@Configuration
@PropertySource(value = "${application.metadata-path:classpath:metadata.yaml}", factory = YamlPropertiesSourceFactory.class)
@PropertySource(value = "${application.metadata-path:classpath:metadata.yaml}",encoding = "UTF-8", factory = YamlPropertiesSourceFactory.class)
@EnableConfigurationProperties({InitializerProperties.class})
public class InitializerMetadataConfigure {