【问题标题】:Error while deploying Spring App (java.nio.file.NoSuchFileException)部署 Spring App 时出错 (java.nio.file.NoSuchFileException)
【发布时间】:2022-01-26 08:57:39
【问题描述】:

在部署我的应用时出现以下错误

Failed to update deployment(default) of Spring Cloud app(my-server), java.nio.file.NoSuchFileException: D:\server\target\server-1.0.0-SNAPSHOT.pom

我正在使用 IntelliJ 和 Azure 插件(部署到 Azure Spring Cloud 选项)遵循本教程 https://docs.microsoft.com/en-us/azure/spring-cloud/quickstart?tabs=IntelliJ&pivots=programming-language-java

【问题讨论】:

标签: spring azure intellij-idea pom.xml


【解决方案1】:

在使用Spring initializer 创建spring boot 项目时,尝试选择下面提到的所有必需的依赖项。

  • Spring Web,
  • Eureka 发现客户端,
  • Spring Boot 执行器,
  • 云配置客户端。

添加这些依赖后,将项目导入工作区并编译,运行maven。

【讨论】:

    猜你喜欢
    • 2012-06-25
    • 2018-12-16
    • 1970-01-01
    • 1970-01-01
    • 2019-04-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多