No identifier specified for entity 에러 해결 이슈 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.AnnotationException: No identifier specified for entity: 엔티티명 a..
Docker를 이용한 nGrinder 설치하기 nGrinder 란 nGridner는 네이버에서 제공하는 성능 테스트용 오픈 소스이다, The Grinder 라는 오픈 소스를 기반으로 하고 있다. Controller와 Agent로 이루어져 있다 https://github.com/naver/ngrinder/wiki/Architecture https://github.com/naver/ngrinder/wiki/User-Guide controller 성능 테스트를 위한 웹 인터페이스를 제공 테스트 프로세스를 조정 테스트 통계를 수집하고 표시 사용자가 스크립트를 생성하고 수정할 수 있는 기능 지원 Agent Agent Mode가 실행될 때 Target 서버에 프로세스 및 스레드를 실행 시켜 부하 발생 Moniter..
하이버네이트 자동 키 에러 해결 이슈 java.sql.SQLException: Table 'dbschema.hibernate_sequence' doesn't exist at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.readErrorPacket(AbstractQueryProtocol.java:1694) ~[mariadb-java-client-2.7.3.jar:na] at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.readPacket(AbstractQueryProtocol.java:1556) ~[mariadb-java-client-2.7.3.jar:na] 해결 개발용 스키마에 sql 로 직..
@ControllerAdvice 를 이용한 예외 처리 이슈 회사에서는 내려줘야 할 Response 에러 포맷이 정해져 있다. 에러를 아름답게 형식화하여 json으로 내려주고 싶다 해결 @ControllerAdvice 로 커스터마이징하여 특정 컨트롤러, 예외 타입에 대해 반환할 응답 JSON 을 정의 할 수 있다. 주요 예외 처리는 다음과 같다. @ControllerAdvice public class CustomRestExceptionHandler { @ExceptionHandler(HttpMessageNotReadableException.class) public ResponseEntity handleHttpMessageNotReadableException( HttpMessageNotReadableExce..