Back-End/Spring
Spring DataIntegrityViolationException 에러
taehyun_kim
2019. 4. 3. 16:33
org.springframework.dao.DataIntegrityViolationException 에러는 lower level persistence exception과 관련된 것이다.
Hibernate와 관련된 exception
1. ConstraintViolationException
2. PropertyValueException
3. DataException : sql문이 잘못되거나 data가 잘못된 경우이다.
JPA와 관련된 exception
javax.persistence.EntityExistsException.
https://www.baeldung.com/spring-dataIntegrityviolationexception