第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

我該如何解決 com.fasterxml.jackson.databind.exc.

我該如何解決 com.fasterxml.jackson.databind.exc.

慕少森 2022-09-14 16:27:12
我在嘗試通過 Swagger 發(fā)布請求時收到以下錯誤。當我通過郵遞員這樣做時,這很好。我使用的是彈簧靴版本 = “2.1.0.發(fā)布”, 搖擺版本 = '2.9.2'。這是我的 Json 映射類。數(shù)據(jù)導(dǎo)出.java@XmlRootElement(name = "DataExport")public class DataExport{  @JsonProperty("engineName")  private String engineName;  @JsonProperty("searchQuery")  private String searchQuery;  public DataExport()  {    super();  }  public DataExport(String aEngineName, String aSearchQuery)  {    super();    this.engineName = aEngineName;    this.searchQuery = aSearchQuery;  }RestController.java@RequestMapping(value = "/export", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.TEXT_PLAIN_VALUE)  @ApiOperation(authorizations = {      @Authorization(value = "oauth") }, value = "Initiates the job for export", response = String.class)  @ApiResponses({ @ApiResponse(code = 200, message = "Request accepted."),      @ApiResponse(code = 500, message = "The export could not be started due to an internal server error.") })  public String getJobId(@RequestBody DataExport aDataExport, HttpServletResponse aResponse,      @Value("${com.xyz.dataexportmodule.defaultfilelocation}") final String aLocation)      throws Exception  {    LOG.info("Initializing export for Engine {} and Query {}", aDataExport.getEngineName(),        aDataExport.getSearchQuery());    String exportLocation = aLocation....我想傳遞這個 json { “引擎名稱”:“ABC”,“搜索查詢”:“*”}但是我得到這個錯誤:nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of `com.xyz.dataexportmodule.persistence.entity.DataExport` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('string') at [Source: (PushbackInputStream); line: 1, column: 1]]我無法弄清楚問題所在,有人請幫忙。
查看完整描述

1 回答

?
吃雞游戲

TA貢獻1829條經(jīng)驗 獲得超7個贊

您的屏幕截圖顯示您有兩個身體,這是無法完成的

我不知道你想做什么,但只是為了測試刪除字段aLocation,它會沒事的。


查看完整回答
反對 回復(fù) 2022-09-14
  • 1 回答
  • 0 關(guān)注
  • 276 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號