springboot项目,post请求接口,代码执行,但是却报错提示
would dispatch back to the current handler URL [/schedule] again.
修改注解@Controller为@RestController
本文探讨了在SpringBoot项目中遇到的一个常见问题:使用POST请求接口时出现循环调用错误,即会再次调度回当前处理器URL。文章详细分析了问题原因,并提供了将@Controller注解更改为@RestController的解决方案。
springboot项目,post请求接口,代码执行,但是却报错提示
would dispatch back to the current handler URL [/schedule] again.
修改注解@Controller为@RestController
2万+
1万+
1560
854