点进@RestController里面可以看到@Controller和@RsponseBody注解,这个注解是如何识别我们的请求路径的
2,初始化 2.1,AbstractHandlerMethodMapping重要的抽象类AbstractHandlerMethodMapping,实现了InitializingBean接口重写了afterPropertiesSet,InitializingBean是个接口有个重要方法afterPropertiesSet
2.2,InitializingBean当一个类实现这个接口之后,Spring启动后,初始化Bean时,若该Bean实现InitialzingBean接口,会自动调用afterPropertiesSet()方法,完成一些用户自定义的初始化操作。
2.3,点进AbstractHandlerMethodMapping中的detectHandlerMethods方法
3,请求


