Error starting spring boot

Asked

Viewed 832 times

0

Console displays the following error message:

Exception in thread "main" java.lang.Noclassdeffounderror: org/springframework/boot/Springapplication at com.example.demo.GerencieAppApplication.main(Gerencieappapplication.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

  • I think some dependency is missing. Try creating a new project using https://start.spring.io/

1 answer

2


I’ve had this problem, usually lack of dependency or wrong configuration 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 folder .m2/repository.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.