Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
495 views
in Technique[技术] by (71.8m points)

java - 无法在IntelliJ IDEA中导入Spring Boot Maven项目-导入后IDE不响应(Unable to import spring boot maven project in IntelliJ IDEA - IDE not responding after importing)

I recently started working on a new mini spring-boot project (I'm very new to this) for learning purposes.

(我最近开始研究一个新的迷你弹簧靴项目(对此我很陌生)。)

But I'm finding some problem in setting up the IntelliJ IDE.

(但是我在设置IntelliJ IDE时发现了一些问题。)

First I downloaded the zip folder from the spring initializr site, and then I tried to import the extracted folder in the IDE.

(首先,我从spring initializr网站下载了zip文件夹,然后尝试将提取的文件夹导入IDE。)

But no subsequent dialogue boxes get displayed after I select 'Maven' from 'Import project from external model' dialogue box.

(但是,从“从外部模型导入项目”对话框中选择“ Maven”后,没有显示后续对话框。)

IDE isn't responding after that.

(之后,IDE没有响应。)

I don't know how to proceed.

(我不知道该如何进行。)

No error prompts or anything is popping up.

(没有错误提示或任何弹出窗口。)

I have installed Maven separately and the version is 3.6.3.

(我已经单独安装了Maven,版本是3.6.3。)

C:UsersUser>mvn --version
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: C:Program Filesapache-maven-3.6.3-binapache-maven-3.6.3in..
Java version: 1.8.0_231, vendor: Oracle Corporation, runtime: C:Program FilesJavajdk1.8.0_231jre
Default locale: en_IN, platform encoding: Cp1252
OS name: "windows 8.1", version: "6.3", arch: "amd64", family: "windows"

The java version is 1.8:

(Java版本是1.8:)

C:UsersUser>java -version
java version "1.8.0_231"
Java(TM) SE Runtime Environment (build 1.8.0_231-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.231-b11, mixed mode)
  ask by Akhila Rajeev translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Please check if you followed the following steps To integrate an existing Maven Java project into IDEA, follow these steps:

(请检查是否遵循以下步骤要将现有的Maven Java项目集成到IDEA中,请遵循以下步骤:)

  1. Open IntelliJ IDEA and close any existing project.

    (打开IntelliJ IDEA并关闭任何现有项目。)

  2. From the Welcome screen, click Import Project.

    (在“欢迎”屏幕上,单击“导入项目”。)

  3. The Select File or Directory to Import dialog opens.

    (将打开“选择要导入的文件或目录”对话框。)

  4. Navigate to your Maven project and select the top-level folder

    (导航到您的Maven项目并选择顶级文件夹)

  5. Click OK.

    (单击确定。)

  6. For the Import project from external model value, select Maven and click Next.

    (对于“从外部模型导入项目”值,选择“ Maven”,然后单击“下一步”。)

  7. Select Import Maven projects automatically and leave the other fields with default values.

    (选择自动导入Maven项目,并将其他字段保留为默认值。)

  8. Click Next.

    (点击下一步。)

    (Your Maven project should be selected for import)

    ((应选择要导入的Maven项目))

  9. Click Next.

    (点击下一步。)

    (The Please select project SDK screen opens.)

    ((请选择项目SDK屏幕打开。))

  10. Make sure the correct JDC is selected and click Next.

    (确保选择了正确的JDC,然后单击“下一步”。)

  11. Create a run configuration to test your project.

    (创建运行配置以测试您的项目。)

  12. Build your project and run it using the configuration you created.

    (生成您的项目并使用您创建的配置运行它。)

  13. Verify that the services are indeed up and running.

    (验证服务确实已启动并正在运行。)

https://www.lagomframework.com/documentation/1.5.x/java/IntellijMaven.html

(https://www.lagomframework.com/documentation/1.5.x/java/IntellijMaven.html)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...