0

在我的 spiring-boot 应用程序中向 RestController 发送请求正文时出现以下错误,论坛中提供的解决方案表明该问题与 IDE 有关,但我找不到与 intellij 相关的任何 QA,

 Caused by: java.nio.charset.UnsupportedCharsetException: Merge
flowable-all-in-one-app_1  |    at java.nio.charset.Charset.forName(Charset.java:531) ~[?:1.8.0_181]
flowable-all-in-one-app_1  |    at org.apache.http.entity.ContentType.create(ContentType.java:255) ~[httpcore-4.4.10.jar:4.4.10]
flowable-all-in-one-app_1  |    at org.apache.http.entity.StringEntity.<init>(StringEntity.java:116) ~[httpcore-4.4.10.jar:4.4.10]
flowable-all-in-one-app_1  |    at org.flowable.http.HttpActivityExecutor.perform(HttpActivityExecutor.java:233) ~[flowable-http-6.4.0.jar:6.4.0]
flowable-all-in-one-app_1  |    at org.flowable.http.HttpActivityExecutor.execute(HttpActivityExecutor.java:94) ~[flowable-http-6.4.0.jar:6.4.0]

@RestController 方法

@RequestMapping(value = "/submission",method = RequestMethod.POST,consumes = "application/json")
    public void submission(@RequestBody Object variables) {

预先感谢。

4

0 回答 0