How to set hibernate.hbm2ddl.auto on deployment in Wildfly NOT using persistence.xml
问题 I need on deployment schema generation for a webapp that uses JPA. The server is Wildfly 9 with Hibernate as JPA provider. I can achieve this by adding <property name="hibernate.hbm2ddl.auto" value="create" /> to persistence.xml. Is there another way to set this property per webapp and on deployment in Wildfly 9? I also tried hibernate.properties, but this had no effect. 回答1: There is no webapp specific deployment property out of the box. But you can set a webapp specific system property