![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
技术基础
小懵懂&
强大自己是解决问题的唯一标准!!!
展开
-
微信订阅消息---Java
消息模板实体import lombok.Data;@Datapublic class WechatTempLateRequestDTO { /** * 用户openid */ private String touser; /** * 订阅消息模版id */ private String template_id; /** * 推送文字 */ private Map<Strin..原创 2021-11-04 17:41:16 · 136 阅读 · 0 评论 -
微信小程序获取openId、用户手机号、用户信息
获取openId public Result<String> getOpenId(String appId, String appSecret, String code) { String result = coreHttpClient.get("https://api.weixin.qq.com/sns/oauth2/access_token?appid=" + appId + "&secret=" + appSecret + "&code=" + c.原创 2021-10-13 17:22:55 · 1673 阅读 · 0 评论 -
Java 模拟并发
public class Test2 { //模拟的并发量 private static final int BINGFA = 10; private static CountDownLatch cdl = new CountDownLatch(BINGFA); public static void main(String[] args) { for (int i = 0; i < BINGFA; i++) { new Th原创 2020-12-02 09:36:31 · 161 阅读 · 1 评论 -
GsonFormat的使用
GsonFormat的使用1、idea下载插件2.创建实体类3.使用4、生成实体5、完成原创 2020-11-29 14:17:33 · 1925 阅读 · 0 评论 -
JDK1.8 List.stream 获取数据的某个字段去重
List.stream 获取某个字段的数据去重创建实体public class person { private Integer id; //id private String name; //姓名 private Integer age; //年龄 public Integer getId() { return id; } public void setId(Integer id) { this.id = id;原创 2020-11-27 15:06:47 · 2389 阅读 · 0 评论 -
list高级用法
List高级用法stream().mapforEachstream().maprecords.stream().map(e -> { e.set("name","小明"); if (pojo != null) { e.set("age", 18)); e.set("sex", "男"); } return e; }).collect(Collectors.toList()); forEach原创 2020-11-24 18:07:43 · 456 阅读 · 0 评论