yl-yue
yl-yue
关联 Issues #728 #1214 #1224 #1777 #1859 #1995 #2107 #2524 #2594 #2961 #3054 @wenshao 望添加一个这样的需求支持,感谢。
```java /** * @author ylyue * @since 2020年4月5日 */ @Configuration public class WebMvcConfig implements WebMvcConfigurer { /** * 使用FastJson优先于默认的Jackson做json解析 * https://github.com/alibaba/fastjson/wiki/%E5%9C%A8-Spring-%E4%B8%AD%E9%9B%86%E6%88%90-Fastjson */ @Override public void configureMessageConverters(List
> 把默认的SortField剔除可解决这个问题 > JSON.DEFAULT_GENERATE_FEATURE = JSON.DEFAULT_GENERATE_FEATURE &~ SerializerFeature.SortField.getMask(); 感谢你提供的方法,但设置了之后,并非按照声明的成员变量顺序进行排序,好像会变成无规律可循了。 ## 测试代码 声明成员变量如下: ```java public class FastJsonHttpMessageConverterDTO { int inta; Integer intb; long longa; Long longb; boolean booleana; Boolean booleanb; String...
@xuqiming 不太确定是否是版本原因,我本地是1.2.73。 我测试了不管是在HttpMessageConverter中或者之间JSON.toJSONString中,顺序都是我上面描述的那样。 需要按照成员变量声明顺序排序,主要还是因为想使用FastJsonHttpMessageConverter替换MappingJackson2HttpMessageConverter。这样返回给前端的参数顺序是可控的,方便文档抒写与查看。 实际操作使用json并不关心顺序
@rilyu 感谢提供有效示例,已测试通过。改天对排序与不排序的性能进行测试下
https://github.com/zalopay-oss/jmeter-grpc-request support for Any type I want to optimize the exception prompt for BloomRPC, adding error prefix is misleading
Thanks for the reply, looking forward to using `ES6` import in `grpc-web` Due to the current `vue2` upgrade to `vue3`, and the selection of UI framework must use ES6 specification,...
@ST-DDT Does that mean that the current support for NACOS is limited to configuration centers and service registration and discovery is not supported. Can we use nacOS service registration and...
我好像理解你说的意思了,`Consul`与`Eureka`是支持服务发现的,因为这两个注册中心是基于通用的`metadata`实现的能力,而nacos不是(或者说nacos的grpc方案不是)。 不过我看了nacos的api后,发现`grpc-spring-boot-starter`可以扩展`metadata`来兼容nacos,不过以这种方式实现的话,以后我们也得考虑兼容性问题,所以你在 [spring-cloud/spring-cloud-commons#1058](https://github.com/spring-cloud/spring-cloud-commons/issues/1058) 中提到的解决方案是最优雅的实现 但在 [spring-cloud/spring-cloud-commons#1058](https://github.com/spring-cloud/spring-cloud-commons/issues/1058) 方案实现之前,我也会尝试使用扩展`metadata`的方式来兼容nacos,便于问题能快速解决。
好的我研究下,感谢解惑,我将尝试解决我所遇到的问题,如果问题能够得到解决,我将为此提交一个pr