Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Abstract Classes

Issues while trying to follow along the Workshop on building a REST Api with Spring Boot.

I'm trying to follow along the workshop on building a REST Api with Spring. At the step where the Application.java file is created and run for the first time, my application errors out with the following error.

Your application is unlikely to start due to a component scan of the default package.

2 Answers

Thank you for that Soumasish! That seemed to be the same problem I was having.

Craig Dennis
STAFF
Craig Dennis
Treehouse Teacher

Hmm sorry to hear that.

Are you sure you have the @SpringBootApplication annotation like in my code on GitHub.

Thanks for the response. Humbled that you chose to respond directly Craig. Appreciate that. I figured out the issue. I had not created a root package inside my java folder. The Models/Repositories had their separate packages but the Application class was sitting at the root of the java folder. It seems Spring doesn't like that and thus threw up and error. Now that I moved it one level down, everything works fine.