한 서비스에 기능 고도화를 개발하고 배포한 일이 있었습니다. 서비스 배포 과정에서 발생한 에러에 대해 원인을 파악하고 해결한 경험을 기록하여 공유해보려고 합니다.
용어나 코드는 실제의 것으로 작성하지 않고 컨셉으로 대체하였습니다.
서비스A
유니버설 템플릿
적용을 통한 주요 기능 변경 및 추가 로직 도입첫 번째 시도에서 만난 에러 메시지는 다음과 같습니다. 이 에러로 빌드 자체가 안되었는데요.
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]