Leave a Reply

102 Comments on "Spring Boot Quick Start 11 – Adding a REST Controller"

Notify of
avatar

Anit Mohanty
Guest
Anit Mohanty
24 days 20 hours ago

Hi Kaushik,First of all Thanks for these videos. It really helps.My question is :When I run the first time it runs fine but the second time it gives the following exception : java.net.BindException: Address already in use: bindSo I have to change the port every time in the application.properties file.Could you please share a better solution to this ?

Bishwo Karki
Guest
Bishwo Karki
1 month 8 days ago

how can we map view or template to that url ?

Ayush Bisht
Guest
Ayush Bisht
1 month 9 days ago

It is working fine for we and i did not use @ComponentScan

Shelke Avinash
Guest
Shelke Avinash
2 months 4 days ago

As per your last video , you said spring boot provide the tomcat server by default but if i wanted to deploy service's which required application server then how tomcat server provides that feature

Vinay KR
Guest
Vinay KR
1 month 15 days ago

you make a war file and deploy it .

Anis Mulla
Guest
Anis Mulla
2 months 18 days ago

why to add extra package ?

Guy Tarel
Guest
Guy Tarel
3 months 18 days ago

Thank you for your generosity.

Guy Tarel
Guest
Guy Tarel
3 months 18 days ago

Thank you for your generosity.

raja b
Guest
raja b
3 months 21 days ago

Hi guys,. Where is the application root context here when we run an application..instead of localhost:8080/hello how can we give …..here course-api is the root context path

raja b
Guest
raja b
3 months 21 days ago

Hi guys,. Where is the application root context here when we run an application..instead of localhost:8080/hello how can we give …..here course-api is the root context path

Rare Case
Guest
Rare Case
1 month 12 days ago

@RequestMapping("/course-api")@RestControllerpublic class HelloController { @RequestMapping("/he") public String sayHi() { return "Hi me!"; }}

Kanishka Srivastava
Guest
Kanishka Srivastava
4 months 1 day ago

Hi Mr. Kaushik, In my case the embedded tomcat server is starting up, however, getting 404 error on the browser with the following message: 'The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.'Could you please help me with this.

1 2 3 6
wpDiscuz