You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Spring Boot项目POST请求返回404(提示无对应静态资源)问题求助

Spring Boot项目POST请求返回404(提示无对应静态资源)问题求助

大家好,我最近实现了一个Spring Boot项目,项目名为ETLproject,启动类是ETLprojectApplication。

我在Postman中向地址 http://localhost:8080/project/api/json/users/save 发送POST请求时,收到了404错误响应,具体信息如下:

{
    "type": "about:blank",
    "title": "Not Found",
    "status": 404,
    "detail": "No static resource project/api/json/users/save.",
    "instance": "/project/api/json/users/save"
}

项目的pom.xml代码如下(部分内容未完整粘贴):

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>...

想请教下各位,明明这是一个接口请求,应该映射到Controller里的方法才对,为什么会提示找不到静态资源呢?有没有大佬能帮忙分析下问题所在?

备注:内容来源于stack exchange,提问作者Andrew dev

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.17 10:39:35