- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
所以我构建了一个开箱即用的 jHipster 微服务网关。我有 jHipster 4.5.2。除了回答设置问题(你可以在下面看到我的回答)之外,我没有做任何事情。我指定它在 localhost:8082 上运行。我还安装了 Tomcat 8.5.15,它可以工作;当我打开它时,我在 localhost:8080 看到服务器页面。
我尝试通过执行以下操作来运行网关:
/Users/jimstewart/apache-maven-3.3.9/bin/mvn -Pprod package
java -jar target/data-gateway-0.0.1-SNAPSHOT.war
当它尝试启动时,我很早就收到以下警告:
Could not locate PropertySource: I/O error on GET request for "http://localhost:8761/config/DataGateway/dev/master": Connection refused; nested exception is java.net.ConnectExc
但是 Tomcat 服务器正在运行:当我转到 localhost:8080 时,页面就在那里。
有大量样板文件,数百行,所以我不会全部复制。但是在下面的错误不断重复
2017-06-03 22:48:58.671 ERROR 1271 --- [ main] c.n.d.s.t.d.RedirectingEurekaHttpClient : Request execution error
2017-06-03 22:48:58.674 WARN 1271 --- [ main]
c.n.d.s.t.d.RetryableEurekaHttpClient : Request execution failed with
message: java.net.ConnectException: Connection refused
2017-06-03 22:48:58.675 ERROR 1271 --- [ main]
com.netflix.discovery.DiscoveryClient :
DiscoveryClient_DATAGATEWAY/DataGateway:5ee0c99cb98fec0674d7db2672260892 - was
unable to refresh its cache! status = Cannot execute request on any known server
2017-06-03 22:49:17.689 WARN 1271 --- [nfoReplicator-0]
c.n.d.s.t.d.RetryableEurekaHttpClient : Request execution failed with message: java.net.ConnectException: Connection refused
最终它只是关闭而没有启动。
我还尝试通过从 NetBeans 运行它来启动它。当我打开 Tomcat 时,它会退出,因为“无法启动 Tomcat:端口 8080 已在使用中。”所以,好吧,在关闭 Tomcat 的情况下启动它,这样它就可以自行打开它。然后它不会启动,因为“连接被拒绝”。
如何启动我的应用程序?
我通过以下方式回答了设置问题:
What kind of application? Gateway application
What is the base name? DataGateway
Would you like to install other generators? No
Which port do you want to run it on? 8082
What is your default package name? com.kidslearntocode.datagateway
Do you want to use the jHipster registry? Yes
What kind of authentication? JWT
What type of database? SQL
What production database? mySQL
What development database? mySQL
Maven or Gradle? Maven
Which other technologies? None
Which framework? [beta] Angular 4
LibSass? Yes
Internationalization? No
Other languages? None
最佳答案
此处指出错误:
无法找到 PropertySource:“http://localhost:8761/config/DataGateway/dev/master”的 GET 请求上的 I/O 错误:连接被拒绝;嵌套异常是 java.net.ConnectExc
这意味着你没有启动 JHipster Registry。为此,您有 2 个解决方案:
1) 使用 Docker,只需启动:docker-compose -f src/main/docker/jhipster-registry.yml up -d
2) 克隆项目 https://github.com/jhipster/jhipster-registry ,然后 yarn install
并启动注册表:./mvwn
然后,尝试通过 http://localhost:8761 登录 JHipster Registry。
更多信息请访问 https://jhipster.github.io/api-gateway/
PS:我不太明白你这里是怎么用Tomcat的,因为你的Gateway已经使用了内嵌的Undertow,所以你不需要另外的服务器。
关于tomcat - 无法开箱即用地启动 jHipster 微服务网关,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44350408/
据我所知,标准 jQuery“切换”功能在 jQuery mobile 中不起作用 - 这是正确的吗?如果是这样,还有其他有效的方法吗?我想做的就是打开和关闭“播放”按钮。所以按钮 ID 是“play
他们要求我提供一个“切换按钮”来打开和关闭集群有人可以帮助我实现集群的打开/关闭吗? 注意:加载超过30,000点 最佳答案 创建两层,一层有标记聚类,一层没有标记聚类,并将它们添加到传单控件中。例如
所以我想让我的 Python Gtk 小窗口有 2 个开关。当一个开关打开时,另一个开关关闭,反之亦然。我不太清楚如何控制这两个开关。如果有人能引导我走向正确的方向,我将不胜感激。 #!/usr/bi
按照目前的情况,这个问题不适合我们的问答形式。我们希望答案得到事实、引用或专业知识的支持,但这个问题可能会引发辩论、争论、投票或扩展讨论。如果您觉得这个问题可以改进并可能重新打开,visit the
我为我的 android 应用程序集成了推送通知,我想为任何 android 手机/标签打开/关闭推送通知,任何人都可以帮助我... protected void onPostExecute(Blog
我遇到无法更改的问题 Switch运行时的 textOn/textOff 内容。这意味着,绑定(bind)到简单按钮(用于测试目的)的以下代码不起作用: private int _counter =
我正在开发一个应用程序来测试 iPhone 屏幕是关闭还是打开,我尝试了堆栈溢出中指定的加速度计代码,它在屏幕开启状态下运行良好,但是当我关闭屏幕时,加速度计没有停用。 所以我开始怀疑当屏幕关闭时加速
我想将前置闪光灯设置为自动闪光灯,因此前置摄像头不支持闪光灯,所以我必须将一个 View 设置为白色,以便它作为闪光灯使用,现在我的问题是如果用户设置了怎么办闪光模式自动?当我必须显示 Flash V
我有一个表,其中每隔一个表行都有一个类名“hideme”。在我制作的 css 文件中 .hideme { display:none} 隐藏行包含一个密码字段和一个按钮。在任何给定时间只能显示一个隐藏行
我正在尝试使用 css 切换复选框,使用开/关图像进行切换。但是它并没有发生,fiddle . I agree input[type=checkbox] { display:non
我正在为智能手机编写一个网站。我使用 javascript: navigator.geolocation.getCurrentPosition 来获取位置。 尽管如此,在执行此功能之前,我需要检测 G
如何在我的 Android 应用程序中以编程方式设置数据漫游开/关? 最佳答案 提前为重新打开一个死帖而道歉,但我已经通过调用这个可执行文件设法实现了它: su -c settings put glo
我正在用 java 编程,但我也可以采用 C++(甚至伪)代码,没问题。这是我的意思: 我有一个类似播放列表的东西,例如 List lsMyPlaylist .现在我想给用户洗牌的机会,然后再回到有序
我正在寻找最好的、最具可扩展性的方式来跟踪大量的开/关。开/关适用于项目,编号从 1 到大约 6000 万。 (在我的例子中,开/关是成员(member)的书是否被编入索引,这是一个单独的过程。) 开
我发现下面的代码可以以被动的方式做到这一点。 context.registerReceiver(this.ScreenOffReceiver, new IntentFilter(Intent.ACTI
我有一个脚本,我定期运行以使用 Applescript 打开/关闭灰度。它在 High Sierra 上运行良好,但当我在 Mojave 使用它时抛出异常。 tell application "Sys
如果我启动一个内联 Matplotlib 的 IPython Notebook,有没有办法随后绘制一个图形,以便它以“标准”、非内联的方式显示,而无需在没有内联命令的情况下重新加载笔记本? 我希望能够
如何使用Android中的CheckBoxPreference切换整个系统的声音,振动,数据连接和wifi? 我想在我的应用程序中正在运行 Activity 时禁用这些功能。 最佳答案 我想到了。 在
我想在我的网站上创建一个维护模式,我想放置一个只有管理员才能看到的按钮来打开/关闭维护模式。 这允许管理员继续查看网络,但其他访问者则不能。 我读过有关 catchAllRequest 的内容,创建一
如何检测客户端或服务器端 (ASP.NET) 的浏览器缓存设置。基本上尝试检测用户浏览器是否打开或关闭了缓存。如果关闭,我想将他们重定向到一个包含错误消息的页面,告诉他们打开它。这可能吗? 最佳答案
我是一名优秀的程序员,十分优秀!