Leave a Reply

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

Notify of
avatar

Jose Abel de la Fuente Arriaga
Guest
Jose Abel de la Fuente Arriaga
15 days 12 hours ago

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

Will Ruiz
Guest
Will Ruiz
25 days 51 minutes 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
2 days 19 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
15 days 23 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
26 days 6 hours 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 12 days ago

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

John saida
Guest
John saida
1 month 23 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
29 days 3 hours 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 25 days ago

why you are not telling springmvc with hibernate sir

Osman Mohammed
Guest
Osman Mohammed
3 months 29 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 14 days ago

Make sure u have jdk 1.8

prasad b
Guest
prasad b
4 months 2 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 7 days ago

that would be awesome

Behshad Mohebali
Guest
Behshad Mohebali
4 months 7 days ago

nicely done and well explained. Thank you.

Peace
Guest
Peace
4 months 10 days ago

I was able to figure it out. Thanks

wpDiscuz