Hej, myślałam, że sama jakoś podołam ale już nie mam pomysłu bądź coś mi umyka mianowicie mam program napisany w java ze springiem, podłączeniem do bazy danych etc (bardzo banalny) chciałam, zrobić mapowanie żeby po kliknięciu na przycisk, wyświetlał się dany element z bazy danych przez id wydaje mi się, że metodę mam napisaną dobrze, ale wyświetla mi się 400, a dokładnie
**There was an unexpected error (type=Bad Request, status=400).
**Failed to convert value of type 'java.lang.String' to required type 'java.lang.Long'; nested exception is java.lang.NumberFormatException: For input string: "{id}"
org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'java.lang.Long'; nested exception is java.lang.NumberFormatException: For input string: "{id}
``````@AllArgsConstructor
@NoArgsConstructor
@Data
@Builder
@Entity
@Table(name="animals")
public class Animal {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
i wszędzie w kontrolerze i w serwisie tez mam jako Long, ma ktoś może pomysł to jeszcze mogłam przeoczyć?