没有使用docker,数据库也是本地的。
application-mysql.yaml配置如下:
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3306/halodb?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
username: root
password: root
sql:
init:
mode: always
platform: mysql
启动报错:
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'replyServiceImpl' defined in class path resource [run/halo/app/content/comment/ReplyServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'reactiveExtensionClientImpl' defined in class path resource [run/halo/app/extension/ReactiveExtensionClientImpl.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'reactiveExtensionStoreClientImpl' defined in class path resource [run/halo/app/extension/store/ReactiveExtensionStoreClientImpl.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'extensionStoreRepository' defined in run.halo.app.extension.store.ExtensionStoreRepository defined in @EnableR2dbcRepositories declared on R2dbcRepositoriesAutoConfigureRegistrar.EnableR2dbcRepositoriesConfiguration: Cannot resolve reference to bean 'r2dbcEntityTemplate' while setting bean property 'entityOperations'