Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set using spring-boot

前端 未结 1 1372
旧巷少年郎
旧巷少年郎 2021-02-09 04:42

I am trying to configure hibernate in my spring-boot project.

I have application.properties file

spring.datasource.url=jdbc:mysql:url?useSSL=false
spring         


        
1条回答
  •  孤城傲影
    2021-02-09 05:38

    Have you added this line to your application.properties file ?

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

    DB2
    org.hibernate.dialect.DB2Dialect

    DB2 AS/400
    org.hibernate.dialect.DB2400Dialect

    DB2 OS390
    org.hibernate.dialect.DB2390Dialect

    PostgreSQL
    org.hibernate.dialect.PostgreSQLDialect

    MySQL
    org.hibernate.dialect.MySQLDialect

    MySQL with InnoDB
    org.hibernate.dialect.MySQLInnoDBDialect

    MySQL with MyISAM
    org.hibernate.dialect.MySQLMyISAMDialect

    Oracle (any version)
    org.hibernate.dialect.OracleDialect

    Oracle 9i/10g
    org.hibernate.dialect.Oracle9Dialect

    Sybase
    org.hibernate.dialect.SybaseDialect

    Sybase Anywhere
    org.hibernate.dialect.SybaseAnywhereDialect

    Microsoft SQL Server
    org.hibernate.dialect.SQLServerDialect

    SAP DB
    org.hibernate.dialect.SAPDBDialect

    Informix
    org.hibernate.dialect.InformixDialect

    HypersonicSQL
    org.hibernate.dialect.HSQLDialect

    Ingres
    org.hibernate.dialect.IngresDialect

    Progress
    org.hibernate.dialect.ProgressDialect

    Mckoi SQL
    org.hibernate.dialect.MckoiDialect

    Interbase
    org.hibernate.dialect.InterbaseDialect

    Pointbase
    org.hibernate.dialect.PointbaseDialect

    FrontBase
    org.hibernate.dialect.FrontbaseDialect

    Firebird
    org.hibernate.dialect.FirebirdDialect

    0 讨论(0)
提交回复
热议问题