티스토리 뷰
error
Failed to convert value of type 'java.lang.String' to required type 'java.lang.Integer'; nested exception is java.lang.NumberFormatException: For input string: "delete"
tonirr 2020. 4. 28. 18:10Failed to convert value of type 'java.lang.String' to required type 'java.lang.Integer'; nested exception is java.lang.NumberFormatException: For input string: "delete"
jpa를 사용해서 delete 기능을 추가하려고했는데 이런에러가 계속 발생했다.
javascript로 아래와 같이 값을 던졌는데
location.href = '/admin/delete?id='+values;
어쩐지 컨트롤러에서 계속 delete를 Integer로 바꿀 수 없다는 오류가 났다.
컨트롤러에 아래 어노테이션을 추가하니 해결되었다.
@ConfigurationProperties(prefix="server.upload")
'error' 카테고리의 다른 글
Circular view path [login]: would dispatch back to the current handler URL [/login] again. (0) | 2020.05.18 |
---|---|
No operations allowed after connection closed (0) | 2020.04.13 |
Java compiler level does not match the version of the installed Java project facet (0) | 2020.02.02 |
Maven - 이클립스 Maven 연동 시 plug in 에러나는 경우 (0) | 2020.02.02 |
java.lang.AbstractMethodError: null (0) | 2020.02.01 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- server side rendering
- 병행프로세스
- 인접리스트
- 인접행렬
- 교착상태
- 이진탐색
- 자료구조
- stackframe
- 세마포어
- C
- BFS
- react
- 소프트웨어
- dfs
- client side rendering
- 구조체
- 클래스
- 스텍
- 동적프로그래밍
- 퀵정렬
- Stack
- 입출력장치
- 재귀함수
- 알고리즘
- 배열
- 최단경로
- C++
- Java
- javascript
- 운영체제
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
글 보관함