![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
小兔崽崽!
我还年轻!!!
展开
-
@RequestBody实现参数序列化
前端使用 AJAX 的 post 方式请求时,需要对请求参数做序列化处理,否则 SpringMVC 无法接收提交参数。//使用qs模块中的stringify方法实现post提交时的参数序列化this.$axios.post('http://localhost:8080/hello', this.$qs.stringify(user))...在 SpringBoot 中,可以使用 @RequestBody 注解,在服务器端实现 post 提交时的参数序列化处理。这样,前端的 post 请求就可以直接提原创 2021-10-26 21:43:18 · 1897 阅读 · 0 评论 -
STS创建springboot项目时报错:SocketTimeoutException: connect timed out
解决办法:将Service URL 换成:https://start.aliyun.com原创 2021-10-26 09:27:18 · 433 阅读 · 0 评论