Create a component under java-spring named RouteHandler. This component should define a method
used to handle a route.
A normal route method may look something like this
@GetMapping("/title/{bookTitle}")
public List findByTitle(@PathVariable String bookTitle) {
return bookRepository.findByTitle(bookTitle);
}
It will need to take arguments such as the route type (GET, POST etc), the route name itself /title/{bookTitle}, defined that arguments it takes in to the method. Should just pass children to the body of the function.
Create a component under
java-spring
namedRouteHandler
. This component should define a method used to handle a route.A normal route method may look something like this
It will need to take arguments such as the route type (GET, POST etc), the route name itself
/title/{bookTitle}
, defined that arguments it takes in to the method. Should just pass children to the body of the function.