tutorials icon indicating copy to clipboard operation
tutorials copied to clipboard

[ISSUE] Project spring-boot-jersey is not exposing any endpoint

Open ahmadshahwan opened this issue 1 year ago • 3 comments
trafficstars

Article and Module Links A link to the affected module.

Describe the Issue This module is supposed to expose an endpoint on /hello/{name}. It doesn't.

To Reproduce Steps to reproduce the behavior:

  1. Open a terminal.
  2. Change directory to 'spring-boot-modules/spring-boot-mvc-jersey/spring-boot-jersey'
  3. Run 'mvn spring-boot:run'
  4. Browse to "http://localhost:8080/hello/test"
  5. See error "HTTP Status 404 – Not Found"

Expected Behavior A message saying "Hello, test"

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS: Windows
  • Browser Chrome

ahmadshahwan avatar May 21 '24 09:05 ahmadshahwan

Hi @ahmadshahwan,

Thanks for the feedback. We'll look into this. This issue will remain open until then.

Article link: https://www.baeldung.com/rest-api-jax-rs-vs-spring

Cheers, Team

apeterlic avatar May 23 '24 16:05 apeterlic

Added the Fix for this and Raised the PR as well. https://github.com/eugenp/tutorials/pull/17133

s4ravanank avatar Jul 23 '24 14:07 s4ravanank

I had previously provided a fix that unfortunately went unnoticed!

ahmadshahwan avatar Jul 25 '24 14:07 ahmadshahwan

@ahmadshahwan The PR is merged so I will close here.

Thanks again.

lor6 avatar Aug 23 '24 14:08 lor6

@ahmadshahwan The PR is merged so I will close here.

Thanks again.

Perfect. Thank you.

ahmadshahwan avatar Aug 23 '24 16:08 ahmadshahwan