【发布时间】:2020-07-21 07:18:47
【问题描述】:
我刚刚在服务器中运行时创建了一个简单的 Spring MVC Web 应用程序,我收到 404 here is the error image 我已经在 github git link 上传了我的输入项目,请检查它,感谢任何帮助 >
【问题讨论】:
标签: java spring eclipse hibernate
我刚刚在服务器中运行时创建了一个简单的 Spring MVC Web 应用程序,我收到 404 here is the error image 我已经在 github git link 上传了我的输入项目,请检查它,感谢任何帮助 >
【问题讨论】:
标签: java spring eclipse hibernate
它正在您的 webcontent 文件夹中查找 index.html,但不幸的是,该文件夹不存在。 您在控制器上使用了类级别路径
@RestController
@RequestMapping("/customers")
试试/paperpay/customers
【讨论】:
您需要输入类似http://localhost:8080/customers/ 而不是http://localhost:8080/paperpay/ 的网址,因为您的控制器映射客户,而不是纸质付款。
【讨论】: