你可以使用 RestTemplate 发送一个带有 JSON 数据的 POST 请求,代码示例如下:
POST请求431 Request Header Fields Too Large
431 Request Header Fields Too Large
JsonMappingException: (was java.lang.NullPointerException)
com.fasterxml.jackson.databind.JsonMappingException: (was java.lang.NullPointerException) (through reference chain: ……
Prematurely reached end of stream
com.mongodb.MongoSocketReadException: Prematurely reached end of stream
ArrayIndexOutOfBoundsException: Index -1
java.lang.ArrayIndexOutOfBoundsException: -1
vscode设置Java开发
vscode+插件
Java方法返回多个值
在进行方法重构时,会遇到返回多个值的场景。
Apache Commons Pool
使用 Apache Commons Pool,创建一个连接池
spring5中的WebClient
AsyncRestTemplate已弃用, 已弃用as of Spring 5.0, in favor of org.springframework.web.reactive.function.client.WebClient
K8s导出Event到ES
Kubernetes 中的资源,例如 Pod、Deployment、Ingress、Service 事件用来指示状态更新或异常。大多数情况下,这些Event会被忽视,它们 1 小时的生命周期,可能会导致丢失重要的事件。它们也不可搜索且无法聚合。