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.

Home Page:http://spring.io/guides/gs/accessing-data-mysql/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Path not found

sabrinaslattery opened this issue · comments

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?

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

@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

😎