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最后加上/

相关推荐
逍遥德43 分钟前
MQTT教程详解-04.SpringBoot集成MQTT(告别手动控制)
java·spring boot·物联网·中间件·iot·iotdb
语戚1 小时前
力扣 3161. 块放置查询:线段树解法(Java 实现)
java·算法·leetcode·面试·线段树·力扣·
我命由我123452 小时前
Android 开发问题:MlKitException: An internal error occurred during initialization.
android·java·java-ee·android jetpack·android-studio·androidx·android runtime
888CC++2 小时前
java 并发编程
java·开发语言·python
无风听海2 小时前
JSON Web Token(JWT)完全指南
java·前端·json
JAVA社区3 小时前
Java高级全套教程(十一)—— Kubernetes 超详细企业级实战详解
java·运维·微服务·容器·面试·kubernetes
在繁华处4 小时前
Java从零到熟练(九):并发编程基础
java·开发语言
木头程序员4 小时前
SSM框架学习笔记
java·开发语言·mysql·spring·maven
李白你好4 小时前
页面资产梳理 · 技术指纹识别 · Spring 端点探测
java·后端·spring
一起逃去看海吧4 小时前
dify-03
java·linux·开发语言