Spring Integration and http inbound adapter, how do I extract a principal user?
问题 Here's a controller I'm trying to replace: @RequestMapping("/user") public @ResponseBody UserRsp callUserService(Principal principal) { String authenticatedUsername = principal.getName(); return userService.getUser(authenticatedUsername); } I'd like to replace it with an int-http:inbound-gateway that's mapped to a service adapter. I can't find any documentation on this, but what I'd like to do is something like this: <int-http:inbound-gateway request-channel="requests" reply-channel="replies"