syv
syv

Reputation: 3608

Validating REST Request using RequestBodyAdvice

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

Answers (1)

tao hu
tao hu

Reputation: 31

As far as I know, GET request do not have request body. You should use interceptor or filter.

Upvotes: 1

Related Questions