How @RequestMapping internally works in Spring Boot?
问题 @RestController @RequestMapping("/employee") public class Employee { @RequestMapping("/save") public void saveEmployee() { // saving employee } } How does @RequestMapping will work internally to map the request to the saveEmployee method? 回答1: During application startup, Spring will identify all Bean s by way of XML Config, Java Config, or Component Scanning and store them in the ApplicationContext . Spring Boot autoconfigures many Beans for you, including RequestMappingHandlerMapping. When