Leave a Reply

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

Notify of
avatar

Anit Mohanty
Guest
Anit Mohanty
6 months 14 days 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
6 months 29 days ago

how can we map view or template to that url ?

Ayush Bisht
Guest
Ayush Bisht
6 months 30 days ago

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

Shelke Avinash
Guest
Shelke Avinash
7 months 25 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
7 months 5 days ago

you make a war file and deploy it .

Anis Mulla
Guest
Anis Mulla
8 months 8 days ago

why to add extra package ?

Guy Tarel
Guest
Guy Tarel
9 months 8 days ago

Thank you for your generosity.

Guy Tarel
Guest
Guy Tarel
9 months 8 days ago

Thank you for your generosity.

raja b
Guest
raja b
9 months 11 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
9 months 11 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
7 months 2 days ago

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

Kanishka Srivastava
Guest
Kanishka Srivastava
9 months 22 days 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