Leave a Reply

12 Comments on "Spring Boot Quick Start 18 – Getting a single resource"

Notify of
avatar

Dagny T
Guest
Dagny T
17 days 20 hours ago

You are one awesommeee tutor !!!!! seriously !!

John saida
Guest
John saida
28 days 18 hours ago

HI Koushik,First thanks for your serviceswhen I try to run my app by adding the path variable values I can see the 404 messages instead of single product information. did lot of analysis but unable to found good solution.Below is my code snap shot.@RequestMapping("/getProduct/{id}") public Product getProduct(@PathVariable String id) { return productService.getProductById(id); }could you please let me know if any issues with the above stated code.Thanks in advance.

Britka Sablja
Guest
Britka Sablja
4 days 1 hour ago

use all lower case letters in mapping. For some reason Spring converts url to lowercase so it can't find getProduct because it is searching for getproducts.

kartik tamta
Guest
kartik tamta
1 month 19 hours ago

why you are not telling springmvc with hibernate sir

Osman Mohammed
Guest
Osman Mohammed
3 months 3 days ago

Hello Kaushik..Thanks for the tutorial.My project can't figure out where 't' in the lamda expression is coming from..

AMOL BADGAUJAR
Guest
AMOL BADGAUJAR
2 months 19 days ago

Make sure u have jdk 1.8

prasad b
Guest
prasad b
3 months 7 days ago

Hi Kowshik, all your tutorials are very informative and helpful. Please post a tutorial on Spring secuiry with oAuth and Microservices

xyxsopme 33
Guest
xyxsopme 33
12 days 6 hours ago

that would be awesome

Behshad Mohebali
Guest
Behshad Mohebali
3 months 12 days ago

nicely done and well explained. Thank you.

Peace
Guest
Peace
3 months 15 days ago

I was able to figure it out. Thanks

Peace
Guest
Peace
3 months 25 days ago

Thanks for sharing this. When i use localhost: 8080/topicsMy code gives me[{"id":"Spring","name":"Spring Framework","description":"Spring Framework Description"},{"id":"Java","name":"Java Framework","description":"Java Framework Description"},{"id":"Java Script","name":"JavaScript Framework","description":"JavaScript Framework Description"}]but when i use localhost:8080/topics/spring it gives this error messageWhitelabel Error PageThis application has no explicit mapping for /error, so you are seeing this as a fallback.Wed Jan 04 18:39:38 EST 2017There was an unexpected error (type=Not Found, status=404).No message available

Britka Sablja
Guest
Britka Sablja
4 days 1 hour ago

Don't know if you found mistake or are even still learning this but the problem is that your id is Spring with capital 'S' while you passed id as 'spring' so spring wasn't found in the list.

wpDiscuz