Commit 604e1041 authored by matianhao's avatar matianhao

[招必得,审管办接口] <update> 设置响应头content-type为application/json

parent 4faf818e
......@@ -278,6 +278,7 @@ public class SgbController {
resultBody.put("error", errMsg);
return ResponseEntity
.status(HttpStatus.INTERNAL_SERVER_ERROR)
.header(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE)
.body(resultBody);
}
......
......@@ -5,7 +5,9 @@ import com.mth.requestsecret.service.RestTemplateService;
import com.mth.requestsecret.util.AESUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
......@@ -129,6 +131,7 @@ public class ZbdController {
resultBody.put("error", "时间戳接口返回异常");
return ResponseEntity
.status(HttpStatus.INTERNAL_SERVER_ERROR)
.header(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE)
.body(resultBody);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment