Mysql SpringBoot2.0.x上的InnoDB?

Mysql SpringBoot2.0.x上的InnoDB?,mysql,spring-boot,innodb,Mysql,Spring Boot,Innodb,如何在SpringBoot2.0.x中配置“hibernate.dialent.storage_engine=innodb”属性 弹簧防尘套2.0.5.1版本 MySQL社区服务器8.0.11 application.properties: spring.jpa.hibernate.ddl-auto=create-drop spring.jpa.properties.hibernate.format_sql=true spring.jpa.properties.hibernate.diale

如何在SpringBoot2.0.x中配置“hibernate.dialent.storage_engine=innodb”属性

  • 弹簧防尘套2.0.5.1版本
  • MySQL社区服务器8.0.11
application.properties:

spring.jpa.hibernate.ddl-auto=create-drop
spring.jpa.properties.hibernate.format_sql=true
spring.jpa.properties.hibernate.dialect.storage_engine=innodb
spring.jpa.show-sql=true
MySQL服务器变量:

default_storage_engine=InnoDB
default_tmp_storage_engine=InnoDB
Spring引导控制台输出:

Hibernate: 

    drop table if exists person
Hibernate: 

    create table person (
       id bigint not null auto_increment,
        address varchar(255),
        age integer,
        city varchar(255),
        info varchar(255),
        telephone varchar(255),
        zip_code varchar(255),
        email varchar(255) not null,
        first_name varchar(255) not null,
        last_name varchar(255) not null,
        version bigint,
        primary key (id)
    ) engine=MyISAM

您应该使用
spring.jpa.properties.hibernate.dialent=org.hibernate.dialent.mysql5innodbdialent

您可以尝试以下方法:

spring.jpa.database-platform: org.hibernate.dialect.MySQL5InnoDBDialect