Error starting spring boot

0

The console displays the following error message:

  

Exception in thread "main" java.lang.NoClassDefFoundError: org / springframework / boot / SpringApplication       at com.example.demo.AppApplication.main (ManageAppApplication.java:10)   Caused by: java.lang.ClassNotFoundException: org.springframework.boot.SpringApplication       at java.net.URLClassLoader.findClass (URLClassLoader.java:381)       at java.lang.ClassLoader.loadClass (ClassLoader.java:424)       at sun.misc.Launcher $ AppClassLoader.loadClass (Launcher.java:349)       at java.lang.ClassLoader.loadClass (ClassLoader.java:357)       ... 1 more

    
asked by anonymous 15.09.2018 / 23:07

1 answer

3

I've had this problem, usually lack of dependency or misconfiguration of the local maven repository, try deleting the dependencies related to Spring Boot and importing the project again so that the dependencies can be updated. Usually the local repository is in your user directory, in the .m2/repository folder.

    
13.11.2018 / 21:41