• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
牛牛
牛牛在线
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理
上一页 1 ··· 5 6 7 8 9 10 11 12 下一页

2022年12月30日

springboot HandlerIntercept
摘要: 1、新建上下文类工具类 public class ContextHolder { private static final InheritableThreadLocal<RequestContext> REQUEST_CONTEXT_INHERITABLE_THREAD_LOCAL = new In 阅读全文
posted @ 2022-12-30 14:32 蜗牛无敌 阅读(82) 评论(0) 推荐(0)
 
 

2022年12月28日

定时300 + 300 随机缓存类
摘要: @Component public class ProductCacheKeyService { private static String PRODUCT_BASE_INFO = "product_info_%s"; //商品信息BIG KEY private Random random = ne 阅读全文
posted @ 2022-12-28 14:34 蜗牛无敌 阅读(37) 评论(0) 推荐(0)
 
 

2022年12月27日

zookeeper的安装
摘要: zookeeper的安装1、下载wget --no-check-certificate --no-cookies https://downloads.apache.org/zookeeper/zookeeper-3.8.0/apache-zookeeper-3.8.0-bin.tar.gz2、解压t 阅读全文
posted @ 2022-12-27 21:52 蜗牛无敌 阅读(60) 评论(0) 推荐(0)
 
jdk1.8的安装 linux
摘要: 1、下载 wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/ 阅读全文
posted @ 2022-12-27 21:28 蜗牛无敌 阅读(54) 评论(0) 推荐(0)
 
 

2022年12月23日

jdk 1.8 多线程
摘要: package com.sleep.demo; import org.springframework.util.CollectionUtils; import java.util.ArrayList; import java.util.List; import java.util.Random; i 阅读全文
posted @ 2022-12-23 11:39 蜗牛无敌 阅读(185) 评论(0) 推荐(0)
 
 

2022年10月12日

使用xstream 解析xml 到对象
摘要: 1、依赖包 <dependency> <groupId>com.thoughtworks.xstream</groupId> <artifactId>xstream</artifactId> <version>1.4.10</version> </dependency> <dependency> < 阅读全文
posted @ 2022-10-12 19:48 蜗牛无敌 阅读(246) 评论(0) 推荐(0)
 
 

2022年9月23日

springboot 配置类
摘要: @Data @ConfigurationProperties(prefix = "recruitment.config") @Component public class RecruitmentConfigProperty { /** * 完成招募跳转url */ private String co 阅读全文
posted @ 2022-09-23 17:26 蜗牛无敌 阅读(56) 评论(0) 推荐(0)
 
 

2022年9月20日

redis distributed lock redis分布式锁试下
摘要: @Resourceprivate DistributedRedisLockTemplate lockTemplate;String distributedKey="lockKey" ; DistributedLockCallback<String> callback = new Distribute 阅读全文
posted @ 2022-09-20 15:50 蜗牛无敌 阅读(124) 评论(0) 推荐(0)
 
restTemplate 使用1
摘要: public String getCode(String jsCode) { try { String url= "http://www.baidu.com" ResponseEntity responseEntity = restTemplate.getForEntity(url, WeChatS 阅读全文
posted @ 2022-09-20 15:37 蜗牛无敌 阅读(69) 评论(0) 推荐(0)
 
restTemplate post使用
摘要: private String generateScheme(GetWechatSchemeReq req, String accessToken) { String path = req.getPath(); String query = req.getQuery(); String url = " 阅读全文
posted @ 2022-09-20 15:33 蜗牛无敌 阅读(90) 评论(0) 推荐(0)
 
 
上一页 1 ··· 5 6 7 8 9 10 11 12 下一页

公告


博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3