Spring MVC annotated development and use details
•
Java
MVC annotated development is processor annotation based class development. For each defined processor, there is no need to register in XML
Just annotate the class and method in the code to complete the registration
Define processor
@Controller: the current class is processor
@Requestmapping: the current method is a processor method. The method name is arbitrary. It processes and responds to requests
You can restrict requests in requestmapping, for example
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码