【问题标题】:Spring Boot and AngularJS deploySpring Boot 和 AngularJS 部署
【发布时间】: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 installmvn spring-boot:run 并浏览到localhost:8080 时,我看到了错误页面“Whitelabel 错误页面”。 api 调用正常,但我没有看到前端。

有什么帮助吗? 构建和启动时没有错误。

【问题讨论】:

  • 查看您的服务器日志文件是否有错误

标签: java angularjs spring-boot deployment web-deployment


【解决方案1】:

解决了ISH “gulp build -prod”创建了一个名为“index-03d946d877.html”的文件,spring 无法识别。我刚改了这个名字。如何为持续集成设置默认文件名?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-12-20
    • 2017-09-30
    • 2016-01-14
    • 2018-09-23
    • 1970-01-01
    • 1970-01-01
    • 2017-01-12
    相关资源
    最近更新 更多