A
A
artshelom2017-02-01 00:36:23
Spring
artshelom, 2017-02-01 00:36:23

How to use Spring methods?

Good evening.
I found several methods in Spring MVC, the server response to the user's request. On off. The spring site returns the name of the .html file. I use ModelAndView myself. Where can I read about all these methods, and their features??
Everything that I found affected only 1 method, but they didn’t seem to know about the rest

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mvsavkin, 2017-02-01
@artshelom

Methods annotated with the @RequestParam annotation return either the name of the view, in which case it will be a String return type, or a ModelAndView which contains both a View and a Model.
The signature of the method itself can be different. More details in the Spring MVC reference docs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question