0
這是我簡單的Spring Rest Controller。獲取HTTP請求頭信息:Java
每次URL映射到我的控制器時,如何獲取Http請求標頭信息?
@RestController
public class GreetingController {
@RequestMapping("/greeting")
public Greeting greeting(@RequestParam(value="name") String name) {
// Here is where I want to get HTTP Request Header Info
return null;
}