I want to set value from application properties for @getMapping headers. I was trying this
@GetMapping(path = "/test/classify/{id}",
headers = "${partners.api-key}")
But it doesn't work. Is it possible to do that? Thanks in advance.
I want to set value from application properties for @getMapping headers. I was trying this
@GetMapping(path = "/test/classify/{id}",
headers = "${partners.api-key}")
But it doesn't work. Is it possible to do that? Thanks in advance.
hi I think you should use @Value to get property and HttpServletResponse to set the header like this: