4

我正在关注一个教程,该人展示了如何使用“spring boot”支持插件创建配置,但是这个插件对我不可用,既不在模板列表中,也不在我尝试添加它的市场中,教程在 MAC 上,我在 Windows 上是原因还是其他原因?

运行/调试配置

市场

这是教程的截图:

在此处输入图像描述

4

3 回答 3

6

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.

于 2020-09-12T17:38:18.110 回答
4

Intellij 社区版不支持 Springboot 项目。它仅在终极版中可用。这就是我切换回 Eclipse(或 STS)的原因。

很少有解决方法可以帮助您在 Intellij 社区版中运行 Springboot 项目:-

  • 通过运行 Main 类。
  • 通过在终端或 cmd 中执行 spring-boot:run 命令。
  • 您可能需要更改一些设置以使 spring-dev-tools 工作于 Intellij 社区版。

我的建议:如果您打算使用 spring 和 spring-dev-tools,那么您应该切换到 Intellij Ultimate 版或 Eclipse STS。

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

于 2020-10-29T08:22:32.040 回答
0

我做了一切仍然没有工作......但解决方案实际上很简单。问题是我的 JDK 是 9 。因此,您可以将您的 jdk 更新到最新版本并尝试,它肯定会成功。也使用最新的 intellij。

于 2020-12-14T10:42:51.287 回答