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:
- How the request path and method name are parsed/encapsulated
- How requests are dispatched/process
Test case:
@RestController
@RequestMapping("/user")
public class TestController {
@GetMapping("/test")
public</