无法在IntelliJ IDEA中找到Spring Boot插件。

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

can not find the spring boot plugin in intellij idea

问题

我正在跟随一个教程,其中该教程展示了如何使用 "spring boot" 支持插件创建配置,但是这个插件对我来说不可用,无论是在模板列表中还是在我尝试添加它的 Marketplace 中,该教程是在 MAC 上,而我在 Windows 上,是这个原因还是还有其他原因?

英文:

I'm following a tutorial where the guy shows how to create a configuration using th "spring boot" support plugin but this pluugin is not available for me, neither in the list of templates nor in the Marketplace where i tried to add it, the tutorial is on a MAC and i'am on a windows is that the cause or there is something else ?

无法在IntelliJ IDEA中找到Spring Boot插件。

无法在IntelliJ IDEA中找到Spring Boot插件。

this is a screenshot from the tutorial :

无法在IntelliJ IDEA中找到Spring Boot插件。

答案1

得分: 8

文件 -> 设置 -> 插件,这里有 Spring Boot 插件... 当我禁用它时,Spring Boot 模板就不见了。

也许您正在使用社区版?它不支持 IntelliJ 的 Spring Boot 功能。

您可以使用 https://start.spring.io/ 并下载一个 Gradle/Maven 项目。

英文:

File -> Settings -> Plugins there is the Spring Boot Plugin ... when i deactivate it, spring boot template is missing.

Maybe you use the community edition? It doesnt support spring boot intellij features.

https://www.jetbrains.com/idea/features/editions_comparison_matrix.html

You can use https://start.spring.io/ and download a gradle/maven project.

答案2

得分: 8

Intellij Community 版本不支持 Spring Boot 项目,只有 Ultimate 版本提供支持。这就是我切换回 Eclipse(或者 STS)的原因。

以下是一些解决方法,可以帮助你在 Intellij Community 版本中运行 Spring Boot 项目:

  • 通过运行主类。
  • 在终端或命令提示符中执行 spring-boot:run 命令。
  • 你可能需要更改一些设置,以使 spring-dev-tools 在 Intellij Community 版本中工作。

我的建议是:如果你计划使用 Spring 和 spring-dev-tools,那么你应该切换到 Intellij Ultimate 版本或 Eclipse STS。

参考链接:
https://www.jetbrains.com/idea/download/#section=windows

英文:

Intellij Community edition does not support Springboot projects. It is available only in Ultimate edition. This is the reason I switched back to Eclipse (or STS).

There are few workarounds that will help you to run Springboot projects in Intellij Community edition:-

  • By running Main class .
  • By executing spring-boot:run command in terminal or cmd.
  • You may need to change some settings to make spring-dev-tools work Intellij Community edition.

My recommendation: If you are planning to use spring and spring-dev-tools then you should either switch to Intellij Ultimate edition or Eclipse STS.

Reference:
https://www.jetbrains.com/idea/download/#section=windows

答案3

得分: 0

我已经尽一切努力,但仍然不起作用... 但解决方案实际上很简单。
问题是我的JDK是9。所以你可以将你的jdk更新到最新版本,然后尝试,肯定会成功的。同时也使用最新的IntelliJ。

英文:

I did everything still didnt work ... But the solution was actually simple.
The problem was my JDK was 9 . So you can update your jdk to latest one and try, it will definitely work out. Use the latest intellij too.

答案4

得分: 0

"Spring Boot"插件支持IntelliJ Idea Ultimate版本,而不支持Community版本。

在Community版本中,有另一种方法来实现这一点。

步骤1: 在IDE的右上角单击“Add Configuration”。然后在“Run/Debug Configurations”窗口上单击“+”图标。
在那里,您会看到插件为“Application”。单击它。

步骤2: 添加主类。如果需要,还可以添加环境变量和程序参数。

(如果需要像Idea Ultimate中的Spring Boot插件中那样添加VM选项,请执行步骤3)

步骤3: 转到窗口右上角的“modify options”(蓝色线条)。然后从列表中选择“Add VM options”。[注意:您甚至可以选择“包括具有'Provided'范围的依赖项”。这对某些项目很有帮助。]

步骤4: 单击“Apply”和“OK”。这将像Spring Boot插件中那样运行项目。

英文:

"spring boot" plugin is supported in IntelliJ Idea Ultimate version, not the Community version.

In Community version, there is another way to do this.

Step 1: Click "Add Configuration" on top right of the IDE. Then click "+" icon on the 'Run/Debug Configurations" window.
There you will see plugin as "Application". Click it

Step 2: Add the Main Class. Also add Environment variables and Program arguments if required.

(If need to add VM options as in Spring boot plugin in Idea Ultimate, follow step 3)

Step 3: Go to "modify options" on top right of the window(in blue lines). Then select "Add VM options" from the list. [Note: You can even select "include dependencies with 'Provided' scope". Helps in some projects.]

Step 4: Click 'Apply' and 'OK'. This will run the project as in Spring Boot plugin.

huangapple
  • 本文由 发表于 2020年9月12日 21:42:36
  • 转载请务必保留本文链接:https://go.coder-hub.com/63860926.html
匿名

发表评论

匿名网友

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

确定