我是windows系统
# application-win.yaml
spring:
# r2dbc:
# url: r2dbc:h2:file:///~/halo2-dev/db/halo-next?MODE=MySQL&DB_CLOSE_ON_EXIT=FALSE
datasource:
#注释 MySQL database configuration.
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
halo:
work-dir: ${user.home}/halo2-dev
如上代码:数据库改为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'
跟数据库的版本有关系吗,5.8,8.0是否都可以呢?