无法在 jhipster 中访问 H2 控制台

Rah*_*hul 3 java h2 spring-boot jhipster jhipster-registry

我无法在网络浏览器上打开 H2 控制台。我的 jhipster 应用程序在 8088 端口上运行。在服务器日志中,我发现 H2 数据库在端口 18088 上可用。

下面尝试过。 http://localhost:18088/h2-console

得到以下回应。 在此输入图像描述

以下是 application-dev.yml 中的详细信息。

devtools:
    restart:
      enabled: true
      additional-exclude: .h2.server.properties
    livereload:
      enabled: false # we use Webpack dev server + BrowserSync for livereload
  jackson:
    serialization:
      indent-output: true
  datasource:
    type: com.zaxxer.hikari.HikariDataSource
    url: jdbc:h2:mem:jhipstersampleapplication;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
    username: jhipsterSampleApplication
    password:
    hikari:
      poolName: Hikari
      auto-commit: false
  h2:
    console:
      enabled: true
  jpa:
    database-platform: io.github.jhipster.domain.util.FixedH2Dialect
    database: H2
    show-sql: true
    properties:
      hibernate.id.new_generator_mappings: true
      hibernate.connection.provider_disables_autocommit: true
      hibernate.cache.use_second_level_cache: true
      hibernate.cache.use_query_cache: false
      hibernate.generate_statistics: false
Run Code Online (Sandbox Code Playgroud)

这个你能帮我吗。

小智 7

添加斜杠解决了我的http://localhost:8080/h2-console问题http://localhost:8080/h2-console/