使用JHipster 4生成的应用程序在8080上返回空白页,但在9000上不返回空白页 [英] Application generated with JHipster 4 returning blank page on 8080, but not on 9000

查看:55
本文介绍了使用JHipster 4生成的应用程序在8080上返回空白页,但在9000上不返回空白页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用JHipster v4创建了一个应用程序.当我在端口8080上发出请求时,它返回一个空白页.如果我使用yarn start,并且向9000端口发出请求,则它的回答正确.

I've create an application with JHipster v4. When I make a request on port 8080 it is returning a blank page. If I use yarn start, and I make a request to 9000 port, it is answering correctly.

有什么主意吗?

推荐答案

在开发模式下与./mvnw一起运行时,JHipster应用程序在端口8080上显示空白页面时,我遇到了同样的问题.我可以通过运行以下命令来解决此问题:

I had the same issue with JHipster application bringing up the blank page on port 8080 when ran with ./mvnw in dev mode. I was able to resolve this by running:

yarn install && yarn webpack:build

完成后,应用程序在端口8080上以开发人员模式正常显示.

After it finishes, the application shows normally in dev mode on port 8080.

这篇关于使用JHipster 4生成的应用程序在8080上返回空白页,但在9000上不返回空白页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆