Spring Boot
[오류해결::JPA] Caused by: java.net.ConnectException: Connection refused (Connection refused)
[오류해결::JPA] Caused by: java.net.ConnectException: Connection refused (Connection refused)
2022.06.21Caused by: java.net.ConnectException: Connection refused (Connection refused) 문제 발생 상황 서버를 실행하니 다음과 같은 오류들이 발생했습니다. 오류 Caused by: java.net.ConnectException: Connection refused (Connection refused) Caused by: org.h2.jdbc.JdbcSQLNonTransientConnectionException: Connection is broken Caused by: org.hibernate.exception.JDBCConnectionException: Unable to open JDBC Connection for DDL execution Caused b..
[오류해결::JPA] Caused by: org.hibernate.AnnotationException: No identifier specified for entity
[오류해결::JPA] Caused by: org.hibernate.AnnotationException: No identifier specified for entity
2022.06.21문제 발생 상황 서버를 실행하니 Caused by: org.hibernate.AnnotationException: No identifier specified for entity: com.example.demo.domain.Board 라는 오류가 발생했습니다. 원인 분석 Entity에 Id를 설정하지 않은 경우 발생하는 오류입니다. 저는 아래와 같은 Entity를 추가했을 때 오류가 발생했습니다. 코드에서 확인 가능하듯이 Id로 선택한 클래스 멤버 변수가 없습니다. package com.example.demo.domain; import lombok.Getter; import lombok.Setter; import lombok.ToString; import javax.persistence.*; import ..