Example: LongemployeeId)Įmployeeemployee=employeeRepository.findById(employeeId) Specifically, is a composed annotation that acts as a shortcut for = RequestMethod.GET). The only exception is the URL which Spring won’t override with method level settings but appends the two path parts.įor example, the following configuration has the same effect as the one above: method=RequestMethod.GET)ĬlassEmployeeController annotation for mapping HTTP GET requests onto specific handler methods. We can provide default settings for all handler methods in a class if we apply this annotation to the class level.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |