Spring boot 在Spring引导中分析HTTP请求头时出错
我创建了一个rest调用来保存时间表条目列表 方法:Spring boot 在Spring引导中分析HTTP请求头时出错,spring-boot,axios,Spring Boot,Axios,我创建了一个rest调用来保存时间表条目列表 方法: @RequestMapping(value = "/saveListOfTimesheetEntries", method = { RequestMethod.POST }, produces = { "application/json" }) public ResponseEntity<CustomResponse> saveListOfTimesheetEntries(@RequestBody
@RequestMapping(value = "/saveListOfTimesheetEntries", method = { RequestMethod.POST }, produces = {
"application/json" })
public ResponseEntity<CustomResponse> saveListOfTimesheetEntries(@RequestBody String timesheetEntriesDataString) {
上面的代码在记录数较少的情况下工作正常,一旦请求中的时间表数增加,它就不工作了
我如何解决这个问题,提前谢谢
作为参考,这是从chrome中的网络选项卡捕获的请求:
您应该在应用程序中放大maxHttpHeaderSize。属性
server.maxHttpHeaderSize = 102400
或application.yml
server
maxHttpHeaderSize: 102400
server.maxHttpHeaderSize = 102400
server
maxHttpHeaderSize: 102400