【发布时间】:2018-09-18 07:37:06
【问题描述】:
我有一个 spring boot 项目和一个使用 yeoman 生成的 AngularJS 项目,当我在 localhost:8080 上启动服务器时,这两个项目都在工作,用于 spring boot 和 localhost:9000 上用于 angular。
现在我想将两者都部署在 8080 端口上。
我尝试gulp build -prod 并复制src/main/resources/static 中的dist 文件夹,但是当我mvn clean install 和mvn spring-boot:run 并浏览到localhost:8080 时,我看到了错误页面“Whitelabel 错误页面”。 api 调用正常,但我没有看到前端。
有什么帮助吗? 构建和启动时没有错误。
【问题讨论】:
-
查看您的服务器日志文件是否有错误
标签: java angularjs spring-boot deployment web-deployment