Reputation: 3608
Im trying to use RequestBodyAdvice in Spring Boot application to validate my JWT token and Device info. It works for POST method as it has @RequestBody in Controller however it is not working for GET method because there is no request body/payload. How to validate GET Services using RequestBodyAdvice, is there any other option?
Upvotes: 0
Views: 700
Reputation: 31
As far as I know, GET request do not have request body. You should use interceptor or filter.
Upvotes: 1