浩浩 浩浩
4年前
Retrofit 支持suspend函数源码分析
Retrofit2.6.0之后支持接口suspend函数配合协程使用,举个例子:ApiServicejavainterfaceLoginApiService:BaseService{@GET("/wxarticle/chapters/json")suspendfungetChapters():BaseResp
Easter79 Easter79
3年前
springBoot配置druid数据源
1.pom.xml<dependency<groupIdmysql</groupId<artifactIdmysqlconnectorjava</artifactId</dependency<dependency<groupIdcom.alibaba</groupId<artifactIddru
Stella981 Stella981
3年前
RabbitMQ集群安装配置+HAproxy+Keepalived高可用
RabbitMQ集群安装配置HAproxyKeepalived高可用转自:https://www.linuxidc.com/Linux/201610/136492.htmrabbitmq集群消息队列RabbitMQ简介  RabbitMQ(ht
Stella981 Stella981
3年前
Go 实现字符串相似度计算函数 Levenshtein 和 SimilarText
【转】http://www.syyong.com/Go/GoimplementsthestringsimilaritycalculationfunctionLevenshteinandSimilarText.html(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fwww
Stella981 Stella981
3年前
SpringBoot Jackson 框架返回结果处理
1\.常用框架框架阿里fastjson谷歌gsonJavaBean序列化为Json,性能:JacksonFastJsonGsonJsonlib2\.Jackson处理相关结果1\.指定字段
Stella981 Stella981
3年前
SkyWalking 6.x 源码分析 —— 调试环境搭建 (非原创)
转自:https://www.codercto.com/a/39625.html    从官方仓库 https://github.com/apache/incubatorskywalking(https://www.oschina.net/action/GoToL
Stella981 Stella981
3年前
Gson解析泛型
1、简单对象我们传入对象Class来将JSON字符串转为对象privatestatic<TTfromJson(Stringresult,Class<TclassOfT){if(resultnull){returnnull;}
Stella981 Stella981
3年前
Android 100多个Styles快速开发布局XML,一行搞定View属性,一键统一配置UI..
Android开发中大量使用XML代码作为界面的布局,使用styles能大幅精简XML代码。比如下面这个界面从AlertDialog至PlacePickerWindow有19个样式相同的跳转Item,点击后颜色加深并跳转界面。!(http://static.oschina.net/uploads/img/201607/24121521_yu7M.
可莉 可莉
3年前
18 个 JavaScript 入门技巧!(含2020JavaScript面试题整理)
1\.转字符串constinput123;console.log(input'');//'123'console.log(String(input));//'123'console.log(input.toString());//'123'
Stella981 Stella981
3年前
Dubbo之服务项目打成jar
pom.xml增加配置<!构建项目配置<build<finalNameznsarticleservice</finalName<!加载资源<resources<resource<ta