I have a Spring Framework question.

@RequstMapping ("/")

What does it mean to give to the @Controller class?
It is recognized as an annotation that defines which method performs processing on the request URL.
Does that mean that it will be the @Controller class that handles requests like "address: port/application name /"?

  • Answer # 1

    I received a request like "address: port/application name /"

    I think it depends on the settings of the application,
    For the time being@Controller classIf you give it to, it will be a "request to the root of the application".