![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SpringCloud
兜不兜先生
温故而知新,坚持学习
展开
-
Hystrix对接口超时配置
开启熔断feign.hystrix.enabled=true全局配置hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=1000接口级别配置hystrix.command.ProductClient#resourceCreatedProduct(ResourceToProductDto).execution.isolation.thread.timeoutInMilliseconds= 5000原创 2020-08-19 10:47:43 · 862 阅读 · 0 评论 -
validator 基于hibernate实现灵活验证
注解实体类@Datapublic class OrderDemandDTO implements DtoConverter<OrderDemand> { private Integer id; @NotNull(message = "订单ID不能为空") private Integer orderId; private Integer destinationCity; private String destinationCityName;原创 2020-06-02 14:43:15 · 186 阅读 · 0 评论