Spring 服务调用接口时,提示You should be redirected automatically to target URL:

问题

html 复制代码
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<title>Redirecting...</title>

<h1>Redirecting...</h1>

<p>You should be redirected automatically to target URL: <a href="http://xxx/api/v1/branch_device/">http://xxx/api/v1/branch_device/</a>.  If not click the link.

调用接口老是提示这个

最后发现是需要在请求url最后加上/

相关推荐
6.94几秒前
Spark,配置hadoop集群1
java·hadoop·spark
神秘的t1 分钟前
Spring Web MVC————入门(1)
java·spring·mvc
在未来等你4 分钟前
互联网大厂Java求职面试:云原生与AI融合下的系统设计挑战-2
java·微服务·ai·云原生·面试题·架构设计·系统设计
cdut_suye10 分钟前
【Linux系统】探索进程等待与程序替换的奥秘
java·linux·运维·服务器·c++·人工智能·python
东方芷兰12 分钟前
Leetcode 刷题记录 08 —— 链表第二弹
java·数据结构·笔记·算法·leetcode·链表
Brookty19 分钟前
【Java学习】反射
java·学习
purrrew24 分钟前
【Java ee初阶】多线程(6)
java·开发语言
字节源流24 分钟前
springboot单体项目的执行流程
java·spring boot·后端
二进制小甜豆6 小时前
网络原理 TCP/IP
java·学习
chirrupy_hamal6 小时前
IntelliJ IDEA 保姆级使用教程
java·intellij idea