标签: spring-tools-4

Eclipse中的Spring插件无法打开pom.xml

我已经在 Eclipse 中安装了最流行的插件(Spring Tools 4.14.1),我尝试创建一个新项目并打开 pom.xml,然后它显示错误并类似于

Failed to create the part's controls

错误显示如下。为什么会出现这种情况?如何修复它?

java.lang.NoClassDefFoundError: org/eclipse/tm4e/ui/utils/ContentTypeHelper
    at org.eclipse.tm4e.languageconfiguration.LanguageConfigurationCharacterPairMatcher.findContentTypes(LanguageConfigurationCharacterPairMatcher.java:134)
    at org.eclipse.tm4e.languageconfiguration.LanguageConfigurationCharacterPairMatcher.getMatcher(LanguageConfigurationCharacterPairMatcher.java:113)
    at org.eclipse.tm4e.languageconfiguration.LanguageConfigurationCharacterPairMatcher.match(LanguageConfigurationCharacterPairMatcher.java:47)
    at org.eclipse.jface.text.source.MatchingCharacterPainter.paint(MatchingCharacterPainter.java:313)
    at org.eclipse.jface.text.PaintManager.addPainter(PaintManager.java:207)
    ...
Run Code Online (Sandbox Code Playgroud)

eclipse spring-tool-suite spring-tools-4

22
推荐指数
1
解决办法
2万
查看次数

NoSuchMethodError: 'java.util.Set org.junit.platform.engine.TestDescriptor.getAncestors()

在 Spring Tool Suite (4.20.0) 中运行 JUnit 测试时出现此错误。

测试运行正常,但最后抛出此错误 -

java.lang.NoSuchMethodError: 'java.util.Set org.junit.platform.engine.TestDescriptor.getAncestors()'
at org.junit.platform.launcher.core.StackTracePruningEngineExecutionListener.getTestClassNames(StackTracePruningEngineExecutionListener.java:50)
at org.junit.platform.launcher.core.StackTracePruningEngineExecutionListener.executionFinished(StackTracePruningEngineExecutionListener.java:39)
at org.junit.platform.launcher.core.DelegatingEngineExecutionListener.executionFinished(DelegatingEngineExecutionListener.java:46)
at org.junit.platform.launcher.core.OutcomeDelayingEngineExecutionListener.reportEngineFailure(OutcomeDelayingEngineExecutionListener.java:83)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:203)
Run Code Online (Sandbox Code Playgroud)

这是我的 Gradle 插件部分 -

plugins {
    id 'java'
    id 'eclipse'
    id 'eclipse-wtp'
    id 'org.springframework.boot' version "3.1.4"
    id 'io.spring.dependency-management' version "1.1.3"
}
Run Code Online (Sandbox Code Playgroud)

这是我的 Gradle 依赖项部分 -

implementation("org.springframework.boot:spring-boot-starter-parent:3.1.4")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-configuration-processor")
implementation("org.springframework.boot:spring-boot-starter-test")
Run Code Online (Sandbox Code Playgroud)

我究竟做错了什么?

我的测试课非常基础 -

@ExtendWith(SpringExtension.class)
@ContextConfiguration(initializers = ConfigDataApplicationContextInitializer.class, classes = { TransformService.class})
@Slf4j
public class TransformServiceTest {

    @Autowired
    TransformService transformService;

    @Test
    public void transformXmlTest() throws Exception {
        transformService.transformXml();
    } …
Run Code Online (Sandbox Code Playgroud)

junit spring-tool-suite spring-boot spring-tools-4

9
推荐指数
2
解决办法
9392
查看次数

STS4 - application.properties 中没有内容辅助

刚刚观看了新视频Getting Super Productive with Spring Tools 4 and Spring Boot 2。想测试application.propertiesSTS4下的内容辅助,但它不起作用。

当我按下时ctrl+space什么也没有。

标签应该是 spring-tool-4。但我没有足够的声誉来创建它。

content-assist spring-boot spring-tools-4

7
推荐指数
2
解决办法
4095
查看次数

在“ Spring Tool Suite版本:3.9.6.RELEASE”中,“显示”视图在任何角度都不可见

窗口->显示视图->其他->键入“显示”。但显示视图不会到来在此处输入图片说明

我已经在debug和spring上进行了复位,但是仍然看不到显示。

eclipse perspective spring-tool-suite spring-tools-4

3
推荐指数
1
解决办法
552
查看次数

下载早期版本的STS4

STS 4 网站在其网站上发布了下载最新版本 IDE 的链接。我们如何下载STS的早期版本?

我希望下载 4.3,因为它具有 kotlin 支持。

PS:我希望将springframework代码导入到eclipse(STS)

spring-tool-suite spring-tools-4

3
推荐指数
1
解决办法
8802
查看次数

Spring Tool Suite 4中的内容自动完成

内容的自动完成功能在Spring Tool Suite 4中不起作用。我检查了设置

在此处输入图片说明

谁能告诉我如何解决这个问题。

例如:

如果我输入数学。->并按Ctrl +空格以获取建议,它不显示默认模板。

java spring spring-mvc spring-boot spring-tools-4

2
推荐指数
1
解决办法
1934
查看次数

尝试在 macOS Catalina 上安装 Spring Tools App 4.7.0

尝试在我的 Mac 上安装 Sprint Tools 4。安装顺利,但当我尝试打开该应用程序时,收到错误消息:

"openjdk-11.0.2.jdk" cannot be opened because the developer cannot be verified.
macOS cannot verify that this app is free from malware.

Homebrew Cask downloaded this file on 6 February 2019 from jdk.java.net.
Run Code Online (Sandbox Code Playgroud)

进而

macOS cannot verify that this app is free from malware.

Homebrew Cask downloaded this file on 6 February 2019 from jdk.java.net.
Run Code Online (Sandbox Code Playgroud)

不知道现在该怎么办?更新?换成不同的东西?非常感谢任何帮助。谢谢

java spring spring-tools-4

2
推荐指数
1
解决办法
1117
查看次数

Windows 版 Spring Tool Suite 4 中的 Lombok 安装

要在 Windows 10 操作系统中的 STS 4 上的一个 Spring Boot 项目上安装 Lombok,我执行了以下步骤:


  1. 将 lombok gradle 依赖项添加到 build.gradle:

    编译'org.projectlombok:lombok'

  2. 然后安装从构建上述依赖项中检索到的 jar 得到一个 lombok-1.16.16.jar。

  3. 要编译 jar,请右键单击 jar -> 作为 Java 应用程序运行。

  4. Lombok 安装程序出现,但无法从驱动器中检测到 IDE。所以手动尝试搜索STS4的.exe文件(我找不到)

所以请帮我找到STS的.exe文件,以完成安装

lombok spring-tool-suite windows-10 spring-tools-4

1
推荐指数
1
解决办法
5836
查看次数

Ctrl + Shift + L 快速搜索在 STS Spring Tools 4 和 Eclipse 中不起作用

我已经安装了春天工具4.6.2新版本,并快速搜索(CTRL+ Shift+ L)不工作,则显示“显示键的帮助”来代替。

我在这里没有找到任何与此相关的帖子。

新版本中是否真的存在错误,并告诉我是否有任何其他快捷方式存在类似问题。

java eclipse keyboard-shortcuts spring-tool-suite spring-tools-4

1
推荐指数
1
解决办法
1787
查看次数