java.lang.IllegalArgumentException: No converter found for return value of type

后端 未结 20 2056
夕颜
夕颜 2020-11-30 00:04

With this code

@RequestMapping(value = \"/bar/foo\", method = RequestMethod.GET)
    public ResponseEntity foo() {

        Foo model;
        ...         


        
20条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-30 00:42

    I was getting the same error for a while.I had verify getter methods were available for all properties.Still was getting the same error. To resolve an issue Configure MVC xml(configuration) with

     
    

    .This is required for Spring to detect the presence of jackson and setup the corresponding converters.

提交回复
热议问题