[spring] org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.dao.DuplicateKeyException: 오류해결

뿌이·2022년 1월 18일
0

오류해결

목록 보기
9/53


이거는 db에 primary key로 설정되어있는 속성이있는데
중복해서 또 db에 넣으려고 해서 그런것임
if(!check프라이머리키){
db에 겹치는 무언가를 넣는 함수
}
하니까 잘됨!

profile
기록이 쌓이면 지식이 된다.

0개의 댓글