![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
DistributedAtomicInteger
文章平均质量分 51
技术引领者
行动击破一切可疑,望朋友早日实现财务自由
展开
-
Fegin 实现声明式REST调用
由于fegin使用的契约是springmvccontract,所以我们可以使用springmvc的注解,首先添加@FeginClient这个注解,定义其name,在为其配置configuration,除了这个功能之外,我们也可以自定义fegin的编码器,解码器,日志打印,也可以添加拦截器,比如一些接口需要进行基于HttpBasic的认证后才能调用。Fegin的出现很好的解决了这个问题,只需要添加一个类,继承基类,然后添加一些注解,最后直接进行访问,并且也支持springmvc的注解。...原创 2022-08-11 17:29:54 · 156 阅读 · 0 评论 -
DistributedAtomicInteger生成到货单号
最近研究了一下实际到货单号的使用,发现有很多的方式可以去生成,除了md5加上uuid等方式,还有DistributedAtomicInteger Date now = new Date(); String nowtime = format.format(now);//“yyyyMMddHHmmssSSS” DistributedAtomicInteger atomicInteger = new ...原创 2020-04-08 09:39:04 · 357 阅读 · 0 评论