fix deprecations due to SpringBoot 2.2.0

replace deprecated MediaType.APPLICATION_JSON_UTF8_VALUE with
MediaType.APPLICATION_JSON_VALUE
This commit is contained in:
2019-10-19 18:56:44 +02:00
parent 4094351063
commit 4749d54499

View File

@@ -92,8 +92,8 @@ public class PdbController implements HardcodedValues, PropertyKeys {
@RequestMapping(path = "/plots", // @RequestMapping(path = "/plots", //
method = RequestMethod.GET, // method = RequestMethod.GET, //
consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, // consumes = MediaType.APPLICATION_JSON_VALUE, //
produces = MediaType.APPLICATION_JSON_UTF8_VALUE // produces = MediaType.APPLICATION_JSON_VALUE //
) )
@ResponseBody @ResponseBody
ResponseEntity<PlotResponse> createPlotGet(@RequestParam(name = "request") final String request) ResponseEntity<PlotResponse> createPlotGet(@RequestParam(name = "request") final String request)
@@ -108,8 +108,8 @@ public class PdbController implements HardcodedValues, PropertyKeys {
@RequestMapping(path = "/plots", // @RequestMapping(path = "/plots", //
method = RequestMethod.POST, // method = RequestMethod.POST, //
consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, // consumes = MediaType.APPLICATION_JSON_VALUE, //
produces = MediaType.APPLICATION_JSON_UTF8_VALUE // produces = MediaType.APPLICATION_JSON_VALUE //
) )
@ResponseBody @ResponseBody
ResponseEntity<PlotResponse> createPlot(@RequestBody final PlotRequest request) ResponseEntity<PlotResponse> createPlot(@RequestBody final PlotRequest request)
@@ -208,7 +208,7 @@ public class PdbController implements HardcodedValues, PropertyKeys {
@RequestMapping(path = "/autocomplete", // @RequestMapping(path = "/autocomplete", //
method = RequestMethod.GET, // method = RequestMethod.GET, //
produces = MediaType.APPLICATION_JSON_UTF8_VALUE // produces = MediaType.APPLICATION_JSON_VALUE //
) )
@ResponseBody @ResponseBody
AutocompleteResponse autocomplete(@RequestParam(name = "query") final String query, AutocompleteResponse autocomplete(@RequestParam(name = "query") final String query,
@@ -234,7 +234,7 @@ public class PdbController implements HardcodedValues, PropertyKeys {
@RequestMapping(path = "/fields", // @RequestMapping(path = "/fields", //
method = RequestMethod.GET, // method = RequestMethod.GET, //
//consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, // //consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, //
produces = MediaType.APPLICATION_JSON_UTF8_VALUE // produces = MediaType.APPLICATION_JSON_VALUE //
) )
@ResponseBody @ResponseBody
List<String> fields() { List<String> fields() {
@@ -248,8 +248,8 @@ public class PdbController implements HardcodedValues, PropertyKeys {
@RequestMapping(path = "/fields/{fieldName}/values", // @RequestMapping(path = "/fields/{fieldName}/values", //
method = RequestMethod.GET, // method = RequestMethod.GET, //
consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, // consumes = MediaType.APPLICATION_JSON_VALUE, //
produces = MediaType.APPLICATION_JSON_UTF8_VALUE // produces = MediaType.APPLICATION_JSON_VALUE //
) )
@ResponseBody @ResponseBody
SortedSet<String> fields(@PathVariable(name = "fieldName") final String fieldName, SortedSet<String> fields(@PathVariable(name = "fieldName") final String fieldName,