How to set PropertyNamingStrategy for RestTemplate in SpringBoot?
问题 I have written a SpringBoot app that consumes a rest api and presents a rest api. My model pojo's have camelCase named properties. The json that the app consumes has under_score property names. The json that the app produces has under_score property names. I would like to use a PropertyNamingStrategy that will do the conversion automatically between Java and json names during marshalling/unmarshalling. I have Java config that attempts to set a naming strategy that can handle this; /** *