1

我想在我的应用程序中使用 HAPI FHIR 结构。我的应用程序是一个弹簧启动应用程序。

代码:

@RequestMapping(value = "{fhirVersion}/$transaction", method = RequestMethod.POST)
    public String execute(@RequestBody Bundle bundle,@PathVariable String fhirVersion) {

    return "";
}

错误:

{
    "timestamp": "2018-04-03T15:06:51.279+0000",
    "status": 415,
    "error": "Unsupported Media Type",
    "message": "Content type 'application/json;charset=UTF-8' not supported",
    "path": "/dstu3/$transaction"
}

您能否让我知道如何实现这一目标?

谢谢

4

0 回答 0