配置文件如下:
server:
port: 8090
spring:
r2dbc:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://...:3306/halodb?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
username: mysql
password: ********
halo:
cache: memory
work-dir: /home/halo/.halo
admin-path: admin
运行后会报大量如下警告并卡死:
2024-02-19T23:50:49.461+08:00 WARN 6895 --- [eReconciler-t-1] io.r2dbc.h2.H2Connection : Option{name='readOnly', sensitive=false} + isn't supported in H2 at the transaction level. You must set it on conenction URL. See http://www.h2database.com/html/features.html#read_only
请问大佬这是什么原因呀,有什么解决办法吗?