스프링부트 프로젝트 진행 중 다음과 같은 에러가 발생 javax.persistence.EntityNotFoundException: Unable to find ... 원인 및 해결 방법 @OneToOne, @OneToMany 와 같은 annotation로 매핑된 id값이 0이거나 매핑되어있는 id의 자식객체가 없을 때 발생 DB에서 기존 테이블을 삭제하고 백업한 테이블 정보로 덮어 씌울 때 index의 Auto-Increament 설정이 누락되어 발생 DB에서 Auto-Increament 설정을 해주어 해결
springboot

AWS RDS 사용 중 SpringBoot에서 too many connections 에러가 발생했다. 원인은 이미 max_connections 설정값 만큼 connection 연결이 되어 있기 때문이었다. 해결 방법 1. AWS RDS 파라미터 그룹 열기 2. 기존에 생성해놓은 파라미터 그룹이 없을 경우 새로운 그룹 생성 3. 생성한 그룹 열고 max_connections 검색 후 파라미터 편집 클릭 후 원하는 값으로 수정 - max_connections = 100 4. 필요 시 connection이 종료되는 시간을 줄여 connection 초과를 방지 - interactive_timeout = 180 수정 - interactive_timeout 파라미터의 값은 초 단위이다. (기본 값은 8시간) 5. ..