Unable to create requested service [org.hibernate .engine.jdbc.env.spi.JdbcEnvironment]-MySQL

前端 未结 6 1646
眼角桃花
眼角桃花 2021-02-15 17:54

I am a newbie to Hibernate. I am currently using Spring boot framework and trying to create database tables through hibernate.

I know the same question is asked before b

6条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-15 18:34

    Use HSQLDialect not MYSQLDialect

    spring.jpa.database-platform=org.hibernate.dialect.HSQLDialect
    spring.jpa.hibernate.ddl-auto=none
    spring.jpa.show-sql=true
    
    
    spring.datasource.url=jdbc:mysql://localhost:3306/xyz?serverTimezone=CST6CDT
    spring.datasource.username=root
    spring.datasource.password=root
    spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver
    

提交回复
热议问题