龍行天下 请大佬指点下。感谢!!!! server: 运行端口 port: 8090 spring: # 数据库配置,支持 MySQL、MariaDB、PostgreSQL、H2 Database,具体配置方式可以参考下面的数据库配置 r2dbc: url: r2dbc:pool:mariadb://localhost:3306/halo username: admin password: *** sql: init: mode: always # 需要配合 r2dbc 的配置进行改动 platform: MariaDB halo: caches: page: # 是否禁用页面缓存 disabled: true # 工作目录位置 work-dir: ${user.home}/.halo2 # 外部访问地址 external-url: http://localhost:8090 # 附件映射配置,通常用于迁移场景 attachment: resource-mappings: - pathPattern: /upload/** locations: - migrate-from-1.x
龍行天下 龍行天下 正常访问,还是H2😅 2024-02-27T09:33:00.640Z WARN 22517 --- [tReconciler-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
龍行天下 15188 cd ~/app && java -jar halo.jar --spring.config.additional-location=optional:file:$HOME/.halo2/
15188 龍行天下 cat $HOME/.halo2/application.yaml 记得加上 application.yaml 如果有文件的话 work-dir: ${user.home}/.halo2 修改为 work-dir: /data/data/com.termux/files/home/.halo2 然后试一下