SpringBoot Fix default StringHttpMessageConverter https://docs.spring.io/spring-boot/appendix/application-properties/index.html#application-properties.server.server.servlet.encoding.charset

Since the default value of server.servlet.encoding.charset is UTF-8, StringHttpMessageConverter with UTF-8 encoding is automatically created by the code below.

https://github.com/spring-projects/spring-boot/blob/c1a733130873c712f162d98fac812dde4a9de05a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/http/HttpMessageConvertersAutoConfiguration.java#L79-L86

Therefore, HttpMessageConverters has two StringHttpMessageConverter as shown below. SpringBoot Fix default StringHttpMessageConverter

So, StringHttpMessageConverter with ISO-8859-1 encoding is not used. (Especially because the default value of server.servlet.encoding.charset is UTF-8)

Even if the developer sets ISO-8859-1 encoding according to the servlet default specification, There are two StringHttpMessageConverter using ISO-8859-1 encoding as shown below.

server.servlet.encoding.charset=ISO-8859-1

SpringBoot Fix default StringHttpMessageConverter So, if there is an additional StringHttpMessageConverter, I would like to change it to not add the default StringHttpMessageConverter.

Comment From: pivotal-cla

@sonjih00n Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

Comment From: pivotal-cla

@sonjih00n Thank you for signing the Contributor License Agreement!

Comment From: bclozel

Build is failing. Please run the build before submitting PRs. I think this is a duplicate of #21374 anyway - Spring Framework configures the default instance and Spring Boot contributes an additional one. While this might not be useful for the server-side case, message converters can be used in clients as well.

I'm declining this change as a result.