목차

개요 및 사건 요약

한 서비스에 기능 고도화를 개발하고 배포한 일이 있었습니다. 서비스 배포 과정에서 발생한 에러에 대해 원인을 파악하고 해결한 경험을 기록하여 공유해보려고 합니다.

용어나 코드는 실제의 것으로 작성하지 않고 컨셉으로 대체하였습니다.

첫 번째 문제

첫 번째 시도에서 만난 에러 메시지는 다음과 같습니다. 이 에러로 빌드 자체가 안되었는데요.

에러 메시지

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/JpaConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build JPA SessionFactory; nested exception is org.hibernate.tool.schema.spi.SchemaManagementException: Schema-validation: missing column [column_name] in table [table_name]