[Spring6 Source Code・MVC] Initialize the registry and complete the mapping relationship between url and controller

Environment: JDK17, SpringBoot3.0

From the previous articles, we can see that the source code of SpringBoot3.0 has undergone many changes, so when we analyze the source code, we must first know the basic principles, and then combine code analysis, which will be much more convenient.

Let's discuss a few questions together:

  1. How the request path and method name are parsed/encapsulated
  2. How requests are dispatched/process

Test case:

@RestController
@RequestMapping("/user")
public class TestController {
   
    
    

    @GetMapping("/test")
    public</

Guess you like

Origin blog.csdn.net/CSDN_SAVIOR/article/details/128948978