JavaSpring数据/Hibernate表DDL创建 3 周,5 日 Questions & Answers 43 通过属性spring.jpa.hibernate.ddl-auto,可以从实体自动生成表 我需要的是,只有一些特定的实体应该生成到数据库中的表中,而其余的实体什么都不做 这可能吗
# 1 楼答案 我想这是你的问题吧https://discourse.hibernate.org/t/i-would-really-like-to-know-more-about-the-update/5455 就像我已经在那里写的那样,除了开发目的之外,您不应该使用hbm2ddl。使用适当的模式管理工具,如Liquibase或Flyway
# 1 楼答案
我想这是你的问题吧https://discourse.hibernate.org/t/i-would-really-like-to-know-more-about-the-update/5455
就像我已经在那里写的那样,除了开发目的之外,您不应该使用hbm2ddl。使用适当的模式管理工具,如Liquibase或Flyway
# 2 楼答案
正如@pcsutar已经评论的,impl说SchemaFilterProvider