springboot 连接数据库报错 Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnviron
【springboot 连接数据库报错 Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnviron】是因为配置问题,出现这个错误出现
spring:
profiles:
active: dev
application:
name: qua
datasource:
driver-class-name: com.mysql.jdbc.Driver
type: com.zaxxer.hikari.HikariDataSource
url: jdbc:mysql://192.168.1.100:3306/qua?characterEncoding=UTF-8&useSSL=true
username: root
password: root
jpa:
hibernate:
ddl-auto: update
database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
show-sql: true
hikari:
minimum-idle: 10
maximum-pool-size: 30
connection-test-query: SELECT 1 FROM DUAL
connection-timeout: 30000
idleTimeout: 600000
maxLifetime: 1800000
推荐阅读
- Docker应用:容器间通信与Mariadb数据库主从复制
- Activiti(一)SpringBoot2集成Activiti6
- SpringBoot调用公共模块的自定义注解失效的解决
- 解决SpringBoot引用别的模块无法注入的问题
- 数据库设计与优化
- 数据库总结语句
- py连接mysql
- MySql数据库备份与恢复
- Android|Android BLE蓝牙连接异常处理
- 数据库|SQL行转列方式优化查询性能实践