当我在服务器上运行404 here is the error image 时,我刚刚创建了一个简单的Spring MVC Web应用程序 我已经将我的enter项目上传到了github git link中,请检查它,我们将为您提供帮助 >
答案 0 :(得分:0)
很可惜,它正在您的webcontent文件夹中寻找index.html,但该目录不存在。 您已经在控制器上使用了类级路径
@RestController
@RequestMapping("/customers")
尝试/paperpay/customers
答案 1 :(得分:0)
您需要输入http://localhost:8080/customers/之类的URL,而不是http://localhost:8080/paperpay/,这是因为您的控制器映射的是客户,而不是纸钞用户。