Leave a Reply

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

Notify of
avatar

Stephen Kuehl
Guest
Stephen Kuehl
3 days 16 hours ago

Cool!

Jose Abel de la Fuente Arriaga
Guest
Jose Abel de la Fuente Arriaga
19 days 7 hours ago

is possible to use spring boot with soap services?… like RequestMapping?

Will Ruiz
Guest
Will Ruiz
28 days 19 hours ago

Can someone post code for this method…that is not in Lamda public Topic getTopic(String id){ return topics.stream().filter(t -> t.getId().equals(id)).findFirst().get();}

Shank09
Guest
Shank09
6 days 13 hours ago

public Topic getTopic(String id){ for(Topic topic : topics){ if(topic.getId().equals(id)){ return topic; } } return null;}

Will Ruiz
Guest
Will Ruiz
19 days 18 hours ago

figured it out…use this:public Topic getTopic(String id){ Topic tp = new Topic(); for(int i=0; i<topics.size(); i++){ Topic t = topics.get(i); if(t.getId().equals(id)){ tp = topics.get(i); } } return tp; }

zzor12
Guest
zzor12
1 month 1 hour ago

Hi thank you so much! How to add search method in my spring boot application Pls help me 🙂

Dagny T
Guest
Dagny T
1 month 16 days ago

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

John saida
Guest
John saida
1 month 27 days 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
1 month 2 days 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 29 days ago

why you are not telling springmvc with hibernate sir

Osman Mohammed
Guest
Osman Mohammed
4 months 2 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
3 months 18 days ago

Make sure u have jdk 1.8

prasad b
Guest
prasad b
4 months 6 days ago

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

Emre Verim
Guest
Emre Verim
1 month 11 days ago

that would be awesome

Behshad Mohebali
Guest
Behshad Mohebali
4 months 11 days ago

nicely done and well explained. Thank you.

wpDiscuz