📜  springboot中mysql连接细节-Java代码示例

📅  最后修改于: 2022-03-11 14:52:06.659000             🧑  作者: Mango

代码示例1
spring:
  datasource:
    driver-class-name: com.mysql.jdbc.Driver
    url: jdbc:mysql://${MYSQL_HOST:localhost}:3306/cache_test_db
    username: root
    password: password
    initialization-mode: always
  jpa:
    show-sql: true
    hibernate:
      ddl-auto: update