![SpringBoot常用数据源配置 SpringBoot常用数据源配置](https://image.shishitao.com:8440/aHR0cHM6Ly9ia3FzaW1nLmlrYWZhbi5jb20vdXBsb2FkL2NoYXRncHQtcy5wbmc%2FIQ%3D%3D.png?!?w=700&webp=1)
#mysql8.X
url: jdbc:mysql://localhost:3306/yourdbname?serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
username: root
password: 123456
driver-class-name: com.mysql.cj.jdbc.Driver #H2数据库
url: jdbc:h2:mem:yourdbname
username: sa
password:
driver-class-name: org.h2.Driver