[英]Spring Boot Application not Working on IntelliJ
I have just started creating Spring Boot application on IntelliJ.我刚刚开始在 IntelliJ 上创建 Spring 引导应用程序。 Before this I used to use STS tool in ecllipse.
在此之前,我曾经在 eclipse 中使用 STS 工具。 I have just created a starter project from https://start.spring.io/
我刚刚从https://start.spring.io/创建了一个入门项目
Imported it in IntelliJ, Cleaned it or Built it: No Issues .将其导入 IntelliJ,对其进行清理或构建:没有问题。
Installed it: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test
安装它:
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test
When I try to debug the main Spring starter project class I get this error.当我尝试调试主 Spring 启动项目 class 时,我收到此错误。 I have no clue how to fix this, can anyone help me out please.
我不知道如何解决这个问题,请任何人帮助我。
--------------------------------------------------------------------------
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)
--------------------------------------------------------------------------
How do I fix this.我该如何解决。 I have literally not coded anything.
我实际上没有编码任何东西。 This is just a skeleton.
这只是一个骨架。
Any help will be much appretiated.任何帮助将不胜感激。
If anyone is intrigued by how stupid I am.如果有人对我有多愚蠢感兴趣。 The folder in which I had stored the project had an image in its name which was not recognized by spring.Changing the path of the project solved the issue
我存储项目的文件夹名称中有一个图像,spring 无法识别。更改项目的路径解决了这个问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.