In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article focuses on "how the controller in the SAP BOPF and Spring framework is called", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how the controller in SAP BOPF and Spring framework is called.
The methods of these determination of BOPF do not need to be called by application developer itself, but are called by the BOPF framework by calling interface method.
Spring MVC's @ RequestMapping works similarly, but in a slightly more advanced way, using Java reflection.
The productDetail method of the class ProductPageController adds @ RequestMapping, and the argument is:
When I click the image of a product on product list to enter detail page:
This url containing p will be Spring MVCdelegate to the controller class I registered with @ RequestMapping. You can see from debugger that my controller class has been successfully determine out. So in essence, @ RequestMapping has the same purpose as the usual way to put a CLAS name in a table in ABAP: register, but Annotation is more elegant and simple.
For the principle of scanning, see my blog:
A simulation of Java Spring dependency injection annotation @ Inject in ABAP.
How does component-scan work in Spring Framework
How does @ Autowired work in Spring framework
The name of the method to be executed is here:
Finally, this method is called on line 497 of line by reflection.
The difference of reflection Mechanism between Java and ABAP
Note that in Java, the metadata of each method of each class can be described by an instance of sun.reflect.MethodAccessor, while the granularity reflected in ABAP only goes to Class level, only CL_ABAP_CLASSDESCR, not CL_ABAP_CLASS_METHODDESCR!
At this point, I believe you have a deeper understanding of "how the controller in the SAP BOPF and Spring framework is called". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.