Closed quahkj closed 7 years ago
My guess: either your classpath is not set up properly (mouldy jar file maybe?) or you are not using a supported Java version. I would check your environment.
Thanks for reply. I just downloaded the sources from github and ran "mvn spring-boot:run". Maven should do all the jobs so I don't think is the classpath issues. I guess is the Java version causing the problem. Anyway, hope you can find the cause of the problem. Thanks again.
Maven isn't perfect. It sometimes gets you a bad jar file if your network is crappy. No-one can help you without more data. You haven't even said what version of java or maven you are using (but actually you should use the wrapper from the project "mvnw" to avoid issues with maven versions, per the guide).
I am using Maven version 3.3.9 and Java version 1.8.0_102.
Works for me, sorry. I did say "check your environment", didn't I?
I hadthe same issue. I changed the annotation from @controller to @RestController
@koseavase If you have an issue, please open a detailed issue against this guide. The previous op didn't provide much details about the failure, and @dsyer was able to re-run the guide without issue.
Hi,
After I executed mvn spring-boot:run and go to localhost:8080, straight away I got below exceptions. I have no idea what is this but one thing I found is if I exclude thymeleaf dependency in pom.xml this exception just goes away. I will be glad if someone can point me to the solution. Thank you!