前端传到后端的base64字符串太大,超出了JSON的最大值,要怎么规避这个问题?前端已经配置成10M一个shard了。
后端log:
38.284 WARN o.s.w.s.m.s.DefaultHandlerExceptionResolver:207 Resolved [org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: String length (5043368) exceeds the maximum length (5000000)]
30.953 WARN o.s.w.s.m.s.DefaultHandlerExceptionResolver:207 Resolved [org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: String length (5043368) exceeds the maximum length (5000000)]
41.037 INFO c.n.d.s.r.a.ConfigClusterResolver:43 Resolving eureka endpoints via configuration
41.041 INFO c.n.d.s.r.a.ConfigClusterResolver:43 Resolving eureka endpoints via configuration
14.965 WARN o.s.w.s.m.s.DefaultHandlerExceptionResolver:207 Resolved [org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: String length (5043368) exceeds the maximum length (5000000)]
41.042 INFO c.n.d.s.r.a.ConfigClusterResolver:43 Resolving eureka endpoints via configuration