spring启动应用程序在intellij上不工作

huwehgph  于 2021-06-29  发布在  Java
关注(0)|答案(1)|浏览(1004)

我刚刚开始在intellij上创建spring启动应用程序。在此之前,我经常在ecllipse中使用sts工具。我刚刚从创建了一个启动项目https://start.spring.io/
在intellij中导入、清理或构建:没有问题。
安装时间: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test 当我试着调试主springstarter项目类时,我得到了这个错误。我不知道怎么解决这个问题,谁能帮帮我吗。

--------------------------------------------------------------------------
Connected to the target VM, address: '127.0.0.1:49152', transport: 'socket'
Exception in thread "main" java.lang.IllegalArgumentException: Error decoding percent encoded characters
    at java.base/sun.net.www.ParseUtil.decode(ParseUtil.java:215)
    at java.base/jdk.internal.loader.URLClassPath$FileLoader.<init>(URLClassPath.java:1196)
    at java.base/jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:485)
    at java.base/jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:479)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:691)
    at java.base/jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:478)
    at java.base/jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:447)
    at java.base/jdk.internal.loader.URLClassPath.getResource(URLClassPath.java:316)
    at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:720)
    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:646)
    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:604)
    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:168)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
    at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:431)
    at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:525)

***java.lang.instrument ASSERTION FAILED***: "result" with message agent load/premain call failed at ./open/src/java.instrument/share/native/libinstrument/JPLISAgent.c line: 422

FATAL ERROR in native method: processing of -javaagent failed, processJavaStart failed
Disconnected from the target VM, address: '127.0.0.1:49152', transport: 'socket'

Process finished with exit code 134 (interrupted by signal 6: SIGABRT)
--------------------------------------------------------------------------

我该怎么解决这个问题。我真的没有编码任何东西。这只是一副骷髅。
任何帮助都会非常感激的。

v1uwarro

v1uwarro1#

如果有人对我的愚蠢感兴趣。我存储项目的文件夹名称中有一个spring无法识别的图像。更改项目路径解决了这个问题

相关问题