How is the processing of annotations identified in springboot?

for example, why do you respond to http requests by adding @ Controller annotations?

Mar.31,2021

SpringBoot scans the classes under the Application package, then distinguishes the corresponding functions according to the annotations, and creates the corresponding bean. To be exact, it is not the addition of @ Controller to respond to http requests, but also the need for @ RequestMapping to map uri.

Menu