腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9657)
视频
沙龙
3
回答
Spring
Boot
@
RequestBody
复制
参数
不完整
、
、
、
": "dsd",public String Save(@
RequestBody
= true) User newUser){ //TODO:
RequestBody
浏览 43
提问于2019-06-04
得票数 0
回答已采纳
2
回答
如何使用Postman form-data向
Spring
Boot
REST API发送POST请求?
、
、
、
我正在使用STS:尝试一个非常简单的
Spring
Boot
+ MySql应用程序 使用原始正文发布一个新人效果很好。我对邮递员和
Spring
Boot
有点陌生。谢谢。
浏览 2
提问于2016-11-15
得票数 2
2
回答
序列化jackson设置pojo的默认类型
、
、
、
@class)public final String xyz; } Rest api接受形状的对象作为
参数
浏览 30
提问于2021-08-09
得票数 0
回答已采纳
1
回答
您何时使用了@
RequestBody
、@Pathvariable和@RequestParam
、
、
、
我在
Spring
boot
中有一些使用微服务架构的应用程序。我已经在RestTemplate中使用@PathVariable发送了查询
参数
、对象、模型等。在开发应用程序后,我做了一些研究,有人要求我使用@RequestParam和@
RequestBody
。但是我无法理解,我也不知道如何使用@
RequestBody
和@RequestParam。使用@
RequestBody
而不是@PathVariable有什么好处。 我已经使用
Spring
boot
Re
浏览 21
提问于2020-10-04
得票数 0
2
回答
Spring
:哪个内部类在控制器中插入@
RequestBody
参数
?
、
、
something", method = RequestMethod.POST, produces = "application/json")哪个
Spring
类执行读取输入流和在
参数
"postBody“中设置请求体的实际任务?因此,我想调试
Spring
代码,并确切地知道它是一个坏请求的原因。(如果我在控制器签名中没有@
RequestBod
浏览 5
提问于2019-11-29
得票数 2
3
回答
如果
Spring
boot
REST Api中存在额外的
参数
,如何拒绝请求并发送自定义消息
、
、
@PostMapping() @
RequestBody
ContactRequestcontactRequest) throws IOException {如何拒绝API请求,如果请求中存在额外的
参数
,默认情况下
spring
boot
会忽略额外的
参数
。
浏览 0
提问于2019-10-22
得票数 3
1
回答
如何将
Spring
RequestBody
中的
参数
定义为null?
、
、
我希望能够在
Spring
的@
RequestBody
中将某些变量定义为null。这样,
Spring
的控制器将拒绝任何请求,这些请求的主体没有我定义的关键变量。我尝试了下面的代码,但是它不起作用:@PutMapping("/") @
RequestBody
RequestDto requestDto);import javax.validation.con
浏览 4
提问于2021-01-24
得票数 2
回答已采纳
4
回答
尝试在我的
spring
rest应用程序中使用postman上的put和post方法时,出现500内部服务器错误
、
、
、
<description>Patient REST Services</description> <groupId>org.springframework.
boot
</groupId> <version>1.5.9.RELEASEdepen
浏览 3
提问于2018-06-05
得票数 2
1
回答
如何使用Axios发送多个
参数
并使用服务访问这些
参数
?
、
、
、
、
在此范围内,我使用Axios向Java
Spring
-
boot
service发送一些数据。 .catch((error) => { })
浏览 24
提问于2022-01-05
得票数 0
回答已采纳
3
回答
Spring
验证与
Spring
启动器-验证不适用于
Spring
版本2.4.4
、
、
、
我试图在
Spring
中验证一个请求体,但它不起作用。目前,我正在使用SpringBoot2.4.4版本。我就是这么做的。我添加了这个依赖项
spring
-
boot
-starter-validation <groupId>org.springframework.
boot
</groupId><artifactId>
spring
-
boot
-starter-validation</artif
浏览 4
提问于2021-05-09
得票数 3
回答已采纳
1
回答
webflux reacive编程中访问Post方法json
RequestBody
参数
、
、
、
如何访问Mono类型的
RequestBody
参数
。
Spring
Boot
Webflux reactive。 我想返回一个ResponseEntity,而不是Mono。RequestMethod.POST, headers={"content-type=application/json"}) public ResponseEntity<String> poststudentData(@Valid @
RequestBody
浏览 74
提问于2019-04-01
得票数 1
2
回答
Spring
MVC并使用Jackson获取查询
参数
、
、
、
、
我正在尝试捕获Map<String,String>的其他查询
参数
,例如:http://url.example/route?
浏览 1
提问于2019-03-04
得票数 1
1
回答
@Valid注释不适用于json请求列表
、
、
") public ResponseEntity<List<Response>> ConversionResponse( @
RequestBody
浏览 8
提问于2022-03-09
得票数 0
回答已采纳
1
回答
更新的信息不会反映在mysql数据库中
、
、
、
、
:
spring
-
boot
-gradle- plugin:1.5.2.RELEASE") // JPA Data (We are going to use Repositories, Entities, Hibernate, etccompile 'org.springframewor
浏览 3
提问于2017-04-30
得票数 1
2
回答
如何在@
RequestBody
中设置
参数
白名单和黑名单
、
、
我希望在@
RequestBody
中只允许isActive和name
参数
,并希望忽略price属性。 在
Spring
Boot
中有办法做到这一点吗?
浏览 46
提问于2019-04-09
得票数 0
回答已采纳
1
回答
Spring
Boot
将JSON和简单属性传递到相同的映射
、
、
、
、
我是
Spring
Boot
的新手,我想对JSON和简单的请求
参数
使用相同的请求映射方法,例如:public String startPostProcessdefaultValue = "Search") String word, //Do some stuff
浏览 0
提问于2015-11-15
得票数 1
2
回答
获取
spring
boot
中的请求头
、
、
ContentCachingRequestWrapper requestWrapper = (ContentCachingRequestWrapper) currentRequest; String
requestBody
浏览 19
提问于2020-02-07
得票数 1
1
回答
如何使用字符串
参数
向
spring
boot
rest端点添加验证?
、
、
、
如何使用字符串
参数
验证
spring
boot
rest端点,下面是我的端点的示例。RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE) public ResponseEntity<Obje
浏览 0
提问于2018-11-07
得票数 3
2
回答
如何知道
spring
的post请求体中是否提供了
参数
值?
、
我正在用
spring
构建web服务,遇到了以下问题。有一个邮寄服务,如下所示。RequestMapping(value = "/postSomething", method = RequestMethod.POST) Edit1:对于
不完整
的问题,很抱歉:对于
RequestBod
浏览 2
提问于2015-12-09
得票数 3
1
回答
Spring
Boot
Rest API验证不起作用
、
、
、
、
我在
spring
boot
验证和控制器方法
参数
的pom.xml中有以下依赖项,并使用@Valid注释进行了更新,但是当我提交一个包含null或非空值的请求时,仍然没有验证错误。<dependency> <artifactId>
spring
-
boot
-starter-validationartifactId>
浏览 8
提问于2021-06-29
得票数 0
点击加载更多
相关
资讯
Spring Boot实现通用的接口参数校验
Spring Boot启动命令参数详解及源码分析
SpringBoot2.x中Json基础使用详解
SpringBoot WebFlux CRUD实战
如何优雅构建自定义 Spring Boot 验证器,让你的代码更加丝滑!
热门
标签
更多标签
云服务器
ICP备案
对象存储
实时音视频
即时通信 IM
活动推荐
运营活动
广告
关闭
领券