Error: creating bean with name 'entityManagerFactory' defined in class path resource

76 views Asked by At

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is java.lang.IllegalArgumentException: Unrecognized 'hibernate.hbm2ddl.auto' setting: 'true'

1

There are 1 answers

1
tejendra singh On

it solved by adding spring.jpa.hibernate.ddl-auto=update in application properties file. here i used true instead of update so it was giving error.