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!

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

Daniel Turato
seal-mask
PLUS
.a{fill-rule:evenodd;}techdegree seal-36
Daniel Turato
Java Web Development Techdegree Graduate 30,124 Points

Java Web Techdegree Final Project

Hello,

I'm on the last project of the Java Web Techdegree and need help with the following points in the outline:

  • "Create REST endpoints for CRUD operations"
  • "No controllers that have the RestController annotation"

Where should these REST endpoints be accessed via as the project requires using MVC therefore the regular rest uri's won't work alongside the other requirements. I have a lot of confusion about this. If anyone who has completed the course could aid me with that would be great as they took down the slack for this techdegree

Steven Parker
Steven Parker
225,652 Points

This is the "General" topic area. Did you mean to post this in the Java topic area instead?

Steven Parker
Steven Parker
225,652 Points

It might make a difference with folks who use the topic filters to only see questions in topic areas they enjoy and/or are familiar with.

Daniel Turato
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Daniel Turato
Java Web Development Techdegree Graduate 30,124 Points

I changed it, but I only asked it here as support staff said I need to upload the question here in order for the techdegree team to see it. I understand students can help here, but I doubt if any will be able to help with a last project on an outdated techdegree project

3 Answers

Shaddley Anderson
Shaddley Anderson
Treehouse Project Reviewer

Hey Daniel!

For your first question, this can still be accomplished in the MVC structure you've mentioned. This is done through assigning URIs with @RequestMapping annotations that then point to methods within your service layer. Obviously, that then reaches into your Repository layer, extending the CrudRepository classes within the Spring framework. This is where the CRUD endpoints are taken care of.

Your second point simply means controllers should be annotated with @Controller instead of @RestController. This is because you want to separate the REST functions from the controller, instead having these taken care of at a different layer.

Hope that helps!

justin s.
justin s.
1,009 Points

Jesus dude, learn some patience.

Daniel Turato
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Daniel Turato
Java Web Development Techdegree Graduate 30,124 Points

Patience ? I've paid $200 per month for this course for nearly a year now in which I'm entitled to personal support via a slack channel in which they closed and never answered any of my questions. If anything I've been too patience and I've had enough

Steven Parker
Steven Parker
225,652 Points

But here in the forum, you're talking to fellow students that voluntarily help each other.

justin s.
justin s.
1,009 Points

You asked later in the day on Monday

Yes, learn some patience.