Failed to convert value of type 'java.lang.String' to required type 'java.lang.Integer';

f1v3·2023년 6월 15일

오류

There was an unexpected error (type=Bad Request, status=400).
Failed to convert value of type 'java.lang.String' to required type 'java.lang.Integer'; nested exception is java.lang.NumberFormatException: For input string: "SearchResult"

캡스톤 디자인 프로젝트 중 로컬 환경에서 테스트 완료 후 빌드가 되도록 했는데 다음과 같은 오류가 발생했다..
SearchResult는 Controller에서 Model로 return해주는 곳에 있는 문자열인데 왜저러지?

해결 완료!!!

컨트롤러에서 return해서 모델을 띄워줄 때 맨 앞에 '/'를 포함하고 써서 오류가 발생했던 것이였다..

profile
https://blog.f1v3.my

0개의 댓글