error/java

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entity

멋진놈 2022. 7. 25. 15:31
728x90

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.MappingException: An audited relation from com.example.dandy.history.domain.board.Board.fileList to a not audited entity com.example.dandy.history.domain.entity.BoardFileEntity! Such mapping is possible, but has to be explicitly defined using @Audited(targetAuditMode = NOT_AUDITED).

 

 

소스에

@Audited(targetAuditMode = NOT_AUDITED).

추가하던지

@Audite 추가하면 해결됨.