spring boot 数据库连接

server:
  port: 8080
spring:
  datasource:
    url: jdbc:mysql://localhost:3306/jdjk?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8
    username: root
    password: kkk
    hikari:
      driver-class-name: com.mysql.cj.jdbc.Driver

  

posted @ 2018-12-10 17:57  雷神约  阅读(214)  评论(0编辑  收藏  举报