问题
I am working on already existing project which uses spring.jpa.hibernate.ddl-auto=update
and spring.jpa.generate-ddl=true
. I am adding new table using liquibase
.
When I do mvn install
, migrations are being applied correctly and when I do a java -jar target/MyApplication.java
Schema Update happens org.hibernate.tool.hbm2ddl.SchemaUpdate : HHH000228: Running hbm2ddl schema update
.
I don't understand why this behaviour is, can somebody help me in this?
Thanks
来源:https://stackoverflow.com/questions/58918808/execute-liquibase-before-hibernate-in-springboot-using-springjpa