Use the following method to get the header information as null

@RequestHeader(TenantContext.ATTRIBUTES) String tenant

But this way you can get the data

@RequestHeader Map<String, String> headers

Why is this