我刚刚创建了一个简单的 Spring MVC Web 应用程序,当我在服务器中运行时,我收到 404 here is the error image 我已经将我的输入项目上传到github git link请检查它,如有任何帮助,我们将不胜感激 >
最佳答案
它正在您的 webcontent 文件夹中查找 index.html,遗憾的是该文件夹不存在。 您已在 Controller 上使用了类级别路径
@RestController
@RequestMapping("/customers")
尝试/paperpay/customers
关于java - HTTP 状态 404 – 未找到 -hibernate-spring mvc--,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61108141/