造成原因:java.nio.charset.UnsupportedCharsetException-intellij

时间:2018-11-22 16:01:05

标签: java spring-boot intellij-idea flowable

我在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) {

谢谢。

0 个答案:

没有答案