Home > Back-end >  Create the first springboot always quote the Exception in the thread "is the main" Java. L
Create the first springboot always quote the Exception in the thread "is the main" Java. L

Time:12-09

The Exception in the thread "main" Java. Lang. NoClassDefFoundError: org/springframework/boot/SpringApplication
At com. Inspur. Controller. Example. The main (Example. Java: 23)
Under Caused by: Java. Lang. ClassNotFoundException: org. Springframework. Boot. SpringApplication
The at java.net.URLClassLoader.findClass URLClassLoader. Java: (381)
The at Java. Lang. This. LoadClass (424). This Java:
At sun. Misc. The Launcher $AppClassLoader. LoadClass (335). The Launcher Java:
The at Java. Lang. This. LoadClass (357). This Java:
. 1 more

Written in the idea the maven package management tool springboot website quote code is also on copy the error above jdk1.8 maven inherits parent 2.1.6 mavenversion3.3.9 idea2019 should not lack of dependence but couldn't find springapplication

CodePudding user response:

If rely on no problem and no change maven local path, you try to enter C: \ Users \ \ Administrator \. M2/repository/org, the whole springframework package to delete, and update the maven project again,

CodePudding user response:

Local repository is deleted to update also doesn't work

CodePudding user response:

It is dependent on the problem you see your jar is there inside the class

CodePudding user response:

And see if it is version problem
https://blog.csdn.net/anxpp/article/details/52444239

Open the maven local repository, screenshots org/springframework/boot/look at this directory
  •  Tags:  
  • J2ME
  • Related