jdbc:h2:file:./h2\u db,表不存在

u91tlkcl  于 2021-08-20  发布在  Java
关注(0)|答案(0)|浏览(285)

我刚创建了一个数据库文件。但是当我登录到控制台时。我的table不见了。我在申请表中遗漏了什么吗?

spring:
  profiles: dev
  datasource:
    url: jdbc:h2:file:./h2_db;DB_CLOSE_ON_EXIT=FALSE;AUTO_SERVER=TRUE
    driver-class-name: org.h2.Driver
    username: root
    password: 1
  h2:
    console:
      enabled: true
      settings:
        web-allow-others: true
  jackson:
    serialization:
      fail-on-empty-beans: false
    deserialization:
      READ_UNKNOWN_ENUM_VALUES_USING_DEFAULT_VALUE: true
    jpa:
      database-platform: org.hibernate.dialect.H2Dialect
      hibernate:
        ddl-auto: update
      properties:
        hibernate:
          format_sql: true
          show_sql: true
          default_batch_fetch_size: 100

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题