Missing request header 'authToken' calling RestAPI method
问题 I have this RestAPI method @GetMapping(path = "/menus", consumes = "application/json", produces = "application/json") public ResponseEntity<List<MenuPriceSummary>> allMenus(HttpServletRequest request, @RequestHeader(value="Authorization: Bearer") String authToken) { String username = jwtTokenUtil.getUsernameFromToken(authToken); User user = userService.findByUserName(username); return ResponseEntity.ok(menuService.allMenus(user)); } which I call from curl curl -X GET -H "Content-Type: