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

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

    In my case, I forgot to add library jackson-core.jar, I only added jackson-annotations.jar and jackson-databind.jar. When I added jackson-core.jar, it fixed the problem.

提交回复
热议问题