JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

springboot 使用请求成功了, 但是调用方接收到的是Not Found

发布时间 2023-11-09 09:43:44作者: 信铁寒胜

1、明明接口是可以返回的,并且是可以断点到了。并且也正常返回了。

但是接口接收到的信息是

{
    "timestamp": 1699449213048,
    "status": 404,
    "error": "Not Found",
    "message": "No message available",
    "path": "/api/agent/releaseAgent"
}

  因为是Controller 用的注解是@Controller。

 

解决方式:使用@RestController

 

    本栏目推荐文章
  • Pycharm读excel文件报错xlrd.biffh.XLRDError: Excel xlsx file not supported
  • 题解 ARC140E【Not Equal Rectangle】
  • 蚂蚁爱购--靠谱的SpringBoot项目
  • mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION; ERROR 1410 (42000): You are not allowed to create a user with GRANT
  • org.springframework.kafka.listener.ListenerExecutionFailedException: Listener method could not be invoked with the incoming message
  • 实时数据流无忧:用 SpringBoot 和 SSE 打造动态前端更新的终极指南
  • Oracle 19c 升级错误【verify_queryable_inventory returned ORA-20001: Latest xml inventory is not loaded into table】
  • Flutter 项目运行到ios模拟器报错 : Error (Xcode): SDK does not contain 'libarclite'
  • 解决TypeError: string indices must be integers, not str
  • ROS2 删除一个工作空间文件夹,source后终端出现not found ...... local_setup.bash解决
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们