techheroshop-project-interface-dev.yml 841 Bytes
Newer Older
1
spring:
2 3
  main:
    allow-bean-definition-overriding: true
4
  datasource:
5
    driver-class-name: com.mysql.cj.jdbc.Driver
6 7 8
    url: jdbc:mysql://127.0.0.1:3306/ecommerce?useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8
    username: root
    password: root
9
    
10
  ###################以下为jpa的配置###########################
11 12 13 14 15 16 17 18 19 20 21
  jpa:
    show-sql: true
    hibernate:
      naming:
        implicit-strategy: org.hibernate.boot.model.naming.ImplicitNamingStrategyJpaCompliantImpl
        physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
      ddl-auto: update
    # use-new-id-generator-mappings: false  # @GeneratedValue(strategy = GenerationType.IDENTITY)效果相同,不然出现序列号
    database: mysql
    database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
  
22 23


24