![]() From this, you can infer that the class level request mapping will remain the same whereas each handler method will have their own request mapping. When this annotation is used on methods, it will give you the URI on which the handler methods will be executed. When used on the class level, it creates a base URI for which the controller will be used. The annotation is used to map web requests onto specific handler classes and handler methods. annotation is used at both the class and method level. This annotation can be used with Spring MVC and Spring WebFlux. The Java class annotated with is capable of handling multiple request mappings. To enable autodetection of such annotated controllers, you can add component scanning to your configuration. The annotation allows autodetection of component classes in the classpath and auto-registering bean definitions for them.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |