一、Create from archetype

1)File->Project

idea采用maven构建quickStart项目

2)设置项目的GroupId、ArtifactId、Version,然后一直Next,Finished。

idea采用maven构建quickStart项目

3)新建的项目的目录结构为

idea采用maven构建quickStart项目

二、运行项目

1).Run->Edit Configurations

idea采用maven构建quickStart项目

2).需要点击Import Changes 或者Enable Auto-Import中一个。


idea采用maven构建quickStart项目

点击后项目的目录结构会有一些变化,可以和一中的步骤3)的新建目录对比一下。

idea采用maven构建quickStart项目

3)配置Main class

idea采用maven构建quickStart项目

4)运行成功
idea采用maven构建quickStart项目

相关文章:

  • 2021-12-20
  • 2021-10-25
  • 2021-11-20
  • 2021-11-02
  • 2021-04-11
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
猜你喜欢
  • 2021-11-03
  • 2021-11-18
  • 2021-08-06
  • 2022-01-20
  • 2021-07-15
  • 2021-05-30
  • 2021-12-15
相关资源
相似解决方案