接口调用正常却返回404

今天使用postman测试接口时,发现接口可以正常调用,数据也有返回,但是postman却显示404,404?不是说明没有找到系统内的资源吗?
代码如下:

@Controller
	@RequestMapping("/ocr")
	public class OCRController {

    @Autowired
    private InsuredService insuredService;
    @PostMapping("/getInfo")
    public Result getInfo(HttpServletRequest request, @RequestParam("file") MultipartFile file) throws Exception {
        Map<String,Object> returnMap = insuredService.getInfo(request,file);
        return Result.success(returnMap);
    }
}

断点测试:

接口调用正常却返回404_java


说明可以正常访问接口返回:

接口调用正常却返回404_数据_02


最后发现原因:

我返回的是个Result,但是我写的注解是@Controller,需要加上注解@ResponseBody,或者将@Controller换成@RestController(相当于@Controller+@ResponseBody)。