I have the data information, such as names, prices, etc; in a static memory, when I call them in the browser they only appear if they are written exactly as they are in the repository; my doubt is how to ignore the tildes and capital letters.
@PostMapping("/buscar")
public String buscarLibro(@RequestParam String nombre, Model model) {
Collection<Libros> libros = librosService.findAll().stream().filter(p ->
p.getNombre().contains(nombre)).collect(Collectors.toList());
model.addAttribute("bLibros",libros);
return "/Libreria/listar";
}