1.1K Star 10.9K Fork 4.4K

GVPanji-plus / AJ-Report

 / 详情

war部署报错Caused by: java.sql.SQLException: No suitable driver

已关闭
创建于  
2023-12-08 08:20

打包成war部署会找不到数据库驱动,不知道如何解决呢
yml文件配置如下:
datasource:
#master:
#driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/aj_report?characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false
username: root
password: 123456
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
hikari:
connection-timeout: 300000 # 连接超时时间 - 默认值:30秒。
validation-timeout: 5000 # 连接被测试活动的最长时间 - 默认值:5秒。
idle-timeout: 60000 # 连接池中允许闲置的最长时间 - 默认值:10分钟
max-lifetime: 1800000 # 一个连接生命时长(毫秒),超时而没被使用则被释放 - 默认值:30分钟
maximum-pool-size: 10 #连接池中允许的最大连接数,包括闲置和使用中的连接 - 默认值:10
minimum-idle: 5 # 连接池中允许的最小空闲连接数 - 默认值:10。

评论 (0)

chouhbz 创建了任务
chouhbz 修改了描述
Foming 任务状态待办的 修改为已关闭
展开全部操作日志

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(1)
Java
1
https://gitee.com/anji-plus/report.git
git@gitee.com:anji-plus/report.git
anji-plus
report
AJ-Report

搜索帮助