E
E
eRKa2021-04-07 19:36:08
Java
eRKa, 2021-04-07 19:36:08

How in spring to see all its parameters when debugging a request?

Asp.net has an HttpRequest object through which you can see all the request parameters in the controller, from url to headers and cookies. Is there a similar equivalent in Spring? Those. I want to put a breakpoint on the input of the controller, and in addition to the values ​​of the parameters of the controller itself, I want to see all the request parameters. Or, what are the options? I work for IDEA.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
eRKa, 2021-04-07
@kttotto

I added it to the controller parameters @RequestHeader Map<String,String> headersand, in principle, what I needed, I saw there: cookies and authorization tokens.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question