![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
问题记录
盖丽男
这个作者很懒,什么都没留下…
展开
-
【JAVA】反射获取对象/LIST中对象属性
背景照着这篇文章Springboot敏感字段脱敏敲了一下例子,然后有一些需要注意的地方,这里记录一下。代码首先是需要引入的依赖项,如下: implementation 'org.assertj:assertj-core:3.21.0' implementation 'org.springframework:spring-aspects:5.3.13' implementation 'com.github.ulisesbocchio:jasypt-spring-boot-starter:3.0.4原创 2021-12-22 17:25:29 · 2874 阅读 · 0 评论 -
Inet4AddressImpl.getHostByAddr 慢
问题我们的服务都通过gateway进行转发,最近发现接口会出现规律的变慢情况,正常情况下,一个响应时间200ms以内的接口,在多次请求的情况下,会出现响应时间增加到5秒,甚至5秒以上的情况。如图排查我们首先排查了实际提供接口调用的服务,发现接口响应时间都很正常,基本都在100ms以内。所以应该是链路上出现了耗时比较长的地方,因为我们的服务都是阿里云上的,所以运维帮忙在gateway上配置了arms,配置完成后,通过监控查找到了这里:分析也就是说:java.net.InetAddress.原创 2021-10-16 10:52:45 · 866 阅读 · 0 评论 -
【feign】Could not write request: no suitable HttpMessageConverter found for request type
背景spring程序,使用的feign调用其他服务,结果抛异常:"Could not write request: no suitable HttpMessageConverter found for request type [com.ekeguan.tradefacade.pojo.req.PhpParams] and content type [application/x-www-form-urlencoded]"}feign.codec.EncodeException: Could not w原创 2021-09-30 15:37:50 · 5951 阅读 · 1 评论