本文来自我的个人博客:https://blog.shunping.xyz
JAVA项目创建
配置修改使用MySQL数据库
` datasource:
type: com.zaxxer.hikari.HikariDataSource
# H2 database configuration.
#driver-class-name: org.h2.Driver
#url: jdbc:h2:file:${halo.work-dir}/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/halo?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
username: halo
password: 123122
`