我已经在 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) 在 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) 刚刚观看了新视频Getting Super Productive with Spring Tools 4 and Spring Boot 2。想测试application.propertiesSTS4下的内容辅助,但它不起作用。
当我按下时ctrl+space什么也没有。
标签应该是 spring-tool-4。但我没有足够的声誉来创建它。
STS 4 网站在其网站上发布了下载最新版本 IDE 的链接。我们如何下载STS的早期版本?
我希望下载 4.3,因为它具有 kotlin 支持。
PS:我希望将springframework代码导入到eclipse(STS)
内容的自动完成功能在Spring Tool Suite 4中不起作用。我检查了设置
谁能告诉我如何解决这个问题。
例如:
如果我输入数学。->并按Ctrl +空格以获取建议,它不显示默认模板。
尝试在我的 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)
不知道现在该怎么办?更新?换成不同的东西?非常感谢任何帮助。谢谢
要在 Windows 10 操作系统中的 STS 4 上的一个 Spring Boot 项目上安装 Lombok,我执行了以下步骤:
将 lombok gradle 依赖项添加到 build.gradle:
编译'org.projectlombok:lombok'
然后安装从构建上述依赖项中检索到的 jar 得到一个 lombok-1.16.16.jar。
要编译 jar,请右键单击 jar -> 作为 Java 应用程序运行。
Lombok 安装程序出现,但无法从驱动器中检测到 IDE。所以手动尝试搜索STS4的.exe文件(我找不到)
所以请帮我找到STS的.exe文件,以完成安装
我已经安装了春天工具4.6.2新版本,并快速搜索(CTRL+ Shift+ L)不工作,则显示“显示键的帮助”来代替。
我在这里没有找到任何与此相关的帖子。
新版本中是否真的存在错误,并告诉我是否有任何其他快捷方式存在类似问题。
java eclipse keyboard-shortcuts spring-tool-suite spring-tools-4
eclipse ×3
java ×3
spring-boot ×3
spring ×2
junit ×1
lombok ×1
perspective ×1
spring-mvc ×1
windows-10 ×1