【问题标题】:Getting Errors After Moving Springboot Application to a Different Directory将 Spring Boot 应用程序移动到其他目录后出现错误
【发布时间】:2022-08-18 22:28:59
【问题描述】:

我的下载目录中有完整的 Springboot 应用程序项目,但是当我将该项目移动到另一个目录时,例如:C:/User/Documents 文件夹它仍在运行但给我视觉错误。 it shows the classes are not imported even though they are and application is still running fine

https://i.stack.imgur.com/8Bmuy.png

我确定是什么原因。 PS:我使用 git。作为该项目的版本控制,不确定是否是因为我在该项目位于“下载”文件夹时初始化了 git。

如果有人知道解决方案,请告诉我。 谢谢

    标签: java spring-boot directory


    【解决方案1】:

    我的建议是:

    1. 关闭 IntelliJ
    2. 在您的文件资源管理器/查找器中,转到您的项目现在所在的目录
    3. 删除.idea.mvntarget文件夹
    4. 再次打开 Idea 并再次从文件夹中打开项目

      可能的想法只是困惑。

    【讨论】:

      猜你喜欢
      • 2021-05-18
      • 1970-01-01
      • 2018-12-07
      • 1970-01-01
      • 2021-12-18
      • 2018-11-14
      • 1970-01-01
      • 2018-01-13
      • 2023-03-27
      相关资源
      最近更新 更多