Ryan Wang 🚀
我是这么配置的,感觉没什么问题啊,而且我远程直接连mysql都可以连上。
`server:
? port: 8090
Response data gzip.
? compression:
? ? enabled: false
spring:
? datasource:
H2 database configuration.
#? ? driver-class-name: org.h2.Driver
#? ? url: jdbc:h2:file:~/.halo/db/halo
#? ? username: admin
#? ? password: 123456
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: 密码
H2 database console configuration.
#? h2:
#? ? console:
#? ? ? settings:
#? ? ? ? web-allow-others: false
#? ? ? path: /h2-console
#? ? ? enabled: false
halo:
? admin-path: admin
memory or level
? cache: memory
`