PostgreSQL + Hibernate + Spring auto create database

后端 未结 6 1299
时光说笑
时光说笑 2020-12-18 07:08

I\'m working with PostgreSQL and Spring 4 and want my app auto create database when it running.

My Entity Class is:

@Entity
@Table(name = \"user\", s         


        
6条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-18 07:48

    The problem is about hibernate dialect. You are using old one. You should use newer one like this.

    spring.jpa.database-platform=org.hibernate.dialect.PostgreSQL95Dialect
    

提交回复
热议问题