Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @RestController
- public class RecipeRestController {
- @Autowired
- private RecipeRepositoryES recipeRepositoryES;
- @RequestMapping("/recipe/by-name")
- public List<RecipeEntityES> greeting(@RequestParam(value = "name", defaultValue = "pasta") String name) {
- return recipeRepositoryES.findByName(name);
- }
- }
Add Comment
Please, Sign In to add comment