为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:8
【操作系统】:windows server 2012 R2 Standard
【CPU】:E5-2640
【问题描述】*:
错误信息:
ERROR org.hibernate.engine.jdbc.spi.SqlExceptionHelper 142 logExceptions - 模式名不能是""
ERROR org.springframework.boot.SpringApplication 858 reportFailure - Application run failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘entityManagerFactory’ defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.exception.GenericJDBCException: Error accessing table metadata
Caused by: dm.jdbc.driver.DMException: 模式名不能是""
项目为springboot+hibernate,配置文件如下:
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
spring.datasource.url=jdbc:dm://LOCALHOST:5236?schema=TEST
spring.datasource.username=TEST
spring.datasource.password=123456
启动项目后报错
单独测试数据库连接成功了吗?
数据库初始化时大小写敏感吗?