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

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

    Faced same error recently - the pojo had getters/setters and all jackson dependencies were imported in pom correctly but some how "< scope > " was "provided" for jackson dependency and this caused the issue. Removing " < Scope > " from jackson dependency fixed the issue

提交回复
热议问题