Brother, have you ever written a servlet? Let’s skip the phenomenon and look at the essence. In fact, it is the request object of the underlying servlet that is packaged. Whether spring uses a proxy or a filter, the final result you see is that the method parameters under @requestMapping are just spring loaded through a series of packages and finally processed. The processed request extracts the packaged information. As for the source code, if you really have the patience to read it (you will definitely not be able to read it), the two packages spring-web and spring-webmvc have specific implementations. I have not seen them. Content, but I have seen spring-bean. Judging from the urinary nature of the latter package, the degree of encapsulation is absolutely terrifying
http://www.cnblogs.com/fangji...
Brother, have you ever written a servlet? Let’s skip the phenomenon and look at the essence. In fact, it is the request object of the underlying servlet that is packaged. Whether spring uses a proxy or a filter, the final result you see is that the method parameters under @requestMapping are just spring loaded through a series of packages and finally processed. The processed request extracts the packaged information. As for the source code, if you really have the patience to read it (you will definitely not be able to read it), the two packages spring-web and spring-webmvc have specific implementations. I have not seen them. Content, but I have seen spring-bean. Judging from the urinary nature of the latter package, the degree of encapsulation is absolutely terrifying