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

后端 未结 20 2134
夕颜
夕颜 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:35

    The answer written by @Marc is also valid. But the concrete answer is the Getter method is required. You don't even need a Setter.

提交回复
热议问题