使用IntelliJ 2020创建一个Spring MVC项目。

huangapple go评论65阅读模式
英文:

Creating a Spring MVC project using Intellij 2020

问题

我正在尝试使用IntelliJ Ultimate 2020创建一个Spring MVC项目,但在我的菜单中找不到它:

使用IntelliJ 2020创建一个Spring MVC项目。

是否有一种方法可以获得Spring选项?我已经检查了Spring插件都已启用。

使用IntelliJ 2020创建一个Spring MVC项目。

英文:

i'm trying to create a spring MVC project using intellij Ultimate 2020 but i don't have it available in my menu :

使用IntelliJ 2020创建一个Spring MVC项目。

Is there a way to get the Spring option ? i already checked that the Spring plugins are all enabled .
使用IntelliJ 2020创建一个Spring MVC项目。

答案1

得分: 0

Spring Initializr可以为您生成Spring Boot项目结构。它将为您提供基本的项目结构,以及用于构建代码的Maven或Gradle构建规范。
您可以使用Spring Initializer来生成Spring项目。它将为您提供SpringMVC项目所需的所有依赖项。

英文:

The Spring Initializr can generate a Spring Boot project structure for you. It will give you a basic project structure and either a Maven or a Gradle build specification to build your code with.
You can use Spring Initializer to generate a spring project. It will provide you with all the dependencies required for SpringMVC project

答案2

得分: 0

前往 https://start.spring.io/
只需指定依赖项。
下载生成的项目。
使用IntelliJ打开项目。
如果在pom.xml中发现任何未满足的依赖项,请解决这些依赖项。

可以开始了!

英文:

Go to https://start.spring.io/.
Just specify the dependencies.
Download the generated project.
Open the project with IntelliJ.
Resolve the dependencies by specifying the unmet ones in pom.xml if found any.

Good to go!

答案3

得分: 0

我不知道你是不是刚开始学习 Spring,但如果是的话,这里有一些建议可以帮助你在 IntelliJ IDEA 中入门。

首先,访问 https://start.spring.io/

指令的前 5 个步骤与这张图片上的数字相匹配
https://i.stack.imgur.com/T6NW1.png

  1. 选择你需要的依赖,例如从 spring web(mvc) 开始
  2. 选择你的编程语言,你需要 java
  3. 选择你将使用的依赖管理工具,例如 maven
  4. 选择 Spring Boot 版本,例如 2.3.3
  5. 为你的项目起一个合适的名字,这不是必需的
  6. 点击 GENERATE
  7. 解压下载的文件
  8. 打开 IntelliJ IDEA -> 选择“打开”或“导入” -> 选择解压的文件夹
英文:

I don't know are u new in spring, but if u are, here some advice to start in idea.

First of all, visit https://start.spring.io/

First 5 steps of instruction matches with numbers on this picture
https://i.stack.imgur.com/T6NW1.png

  1. Choose dependencies u need, for example start with spring web(mvc)
  2. Choose your language, u need java
  3. Choose which dependency manager u will use, for example maven
  4. Choose spring boot version, for example 2.3.3
  5. Give a proper name to your future project, it's not necessary
  6. Press GENERATE
  7. Unzip downloaded file
  8. IntelliJ Idea -> Open or Import - > select unziped folder

huangapple
  • 本文由 发表于 2020年9月17日 03:49:48
  • 转载请务必保留本文链接:https://go.coder-hub.com/63927073.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定