Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/312.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 无法访问jhipster中的H2控制台_Java_Spring Boot_Jhipster_H2_Jhipster Registry - Fatal编程技术网

Java 无法访问jhipster中的H2控制台

Java 无法访问jhipster中的H2控制台,java,spring-boot,jhipster,h2,jhipster-registry,Java,Spring Boot,Jhipster,H2,Jhipster Registry,我无法在web浏览器上打开H2控制台。 我的jhipster应用程序正在8088端口上运行。在服务器日志中,我发现H2数据库在端口18088上可用 在下面试过。 反应迟钝。 下面是application-dev.yml中的详细信息 devtools: restart: enabled: true additional-exclude: .h2.server.properties livereload: enabled: false # we

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

在下面试过。

反应迟钝。

下面是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

请帮我解决这个问题。

有两个不同的端口:

HTTP端口8088用于h2 web控制台,它由web应用程序提供服务,与REST API相同 TCP端口18088可由使用JDBC的其他应用程序使用,但不能从浏览器中使用。此端口在项目的DatabaseConfiguration.java中打开
转到应用程序启动中看到的应用程序url访问url的根目录 然后在最后键入/h2控制台


localhost:8081/services//h2控制台添加斜杠解决了我的问题http://localhost:8080/h2-安慰http://localhost:8080/h2-console/

我尝试了localhost:8088/h2控制台,但它仍然不工作。你能详细解释一下可能出现的问题吗?你把应用程序属性文件复制到注册表了吗?你能解释一下/services/的来源吗?我在Rahul发布的配置文件中没有看到。同样的问题,你找到解决方案了吗?