How to config spring boot application to support both UTF-8 and GBK encode?
问题 I am using spring boot in my project and I run some encoding issue. In the project, there is a controller(below) which accept request with a content type header ,"application/x-www-form-urlencoded;charset=GBK". @RequestMapping(value = "/notify",headers ={"Content-Type=application/x-www-form-urlencoded;charset=GBK"} , method = RequestMethod.POST, produces = "application/x-www-form-urlencoded; charset=GBK") public ResponseEntity<String> notify(@RequestParam(name = "p") String plain,