SpringBoot : Request Header
Motivation
I wanted to understand how headers works in springboot
Simple Example
@GetMapping("/testheader")
public String testHeader(@RequestHeader("iv-user") String ivUser) {
System.out.println("Currently logged in user "+ivUser);
...
hashcodehub.hashnode.dev1 min read