Spring receives the parameters from the front end, how does the front end parameters correspond to the parameters in the method?
such as
http://localhost:8080/hello?hello=hi&word=spring&end=!
then spring can correspond to hello
, world
, end
in the hello method.
world
this parameter is understandable because the parameter name is written in the annotation @ RequestParam
.
but hello
`, end
how to find the corresponding parameters? After java is compiled, his parameter name is gone. How does spring know that the first parameter is hello
and the third parameter is end
?
what I mean by the question is, how does spring implement the correspondence of parameters? How do you know the parameter names of the parameter "hello,end"" in the hello () method? there will be no parameter names after java compilation