spring-guides / gs-accessing-data-mysql

Accessing data with MySQL :: Learn how to set up and manage user accounts on MySQL and how to configure Spring Boot to connect to it at runtime.
http://spring.io/guides/gs/accessing-data-mysql/
Apache License 2.0
201 stars 314 forks source link

Path not found #42

Closed sabrinaslattery closed 1 year ago

sabrinaslattery commented 3 years ago

I'm having an issue with Java EE on Eclipse not finding the paths mapped in the MainController.java file.

Screen Shot 2020-12-05 at 3 20 51 PM

Any suggestions?

dsyer commented 3 years ago

Are you following the same guide? I see “JPA” in the console, but this is the mysql guide.

AAdewunmi commented 1 year ago

@sabrinaslattery A good place to start debugging is to understand the error message:

The HTTP 404 Not Found response status code indicates that the server cannot find the requested resource. Links that lead to a 404 page are often called broken or dead links and can be subject to link rot.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404?retiredLocale=de

I suggest you work back though your code by first checking:

  1. @RequestMapping(path="/demo")
  2. @PostMapping(path="/add")

Then make sure your code is the same as the guide's.

Good luck

😎