jpa+postgresql自动生成表报错org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL

抛错org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL

这是因为实体类的@Table注解没有设定schema这一属性

这边设定为public,之前连mysql不需要这个schema的,postgresql有点不一样的
@Table(name = “xxx”,schema = “public”)

发布了7 篇原创文章 · 获赞 0 · 访问量 1245

猜你喜欢

转载自blog.csdn.net/weixin_32896095/article/details/90760519