use of cn.taketoday.framework.web.server.Encoding in project today-framework by TAKETODAY.
the class HttpMessageConvertersAutoConfiguration method stringHttpMessageConverter.
@Component
@ConditionalOnMissingBean
@ConditionalOnBean(ServerProperties.class)
public StringHttpMessageConverter stringHttpMessageConverter(Environment environment, ServerProperties serverProperties) {
Encoding encoding = serverProperties.getEncoding();
Charset charset = encoding.getCharset();
StringHttpMessageConverter converter = new StringHttpMessageConverter(charset);
converter.setWriteAcceptCharset(false);
return converter;
}
Aggregations