摘要: mysql中普遍使用B+Tree做索引,但在实现上又根据聚簇索引和非聚簇索引而不同。 聚簇索引 : 所谓聚簇索引,就是指主索引文件和数据文件为同一份文件,聚簇索引主要用在Innodb存储引擎中。在该索引实现方式中B+Tree的叶子节点上的data就是数据本身, 非聚餐索引 :非聚餐索引就是指B+Tr 阅读全文
posted @ 2021-07-06 16:23 小蚊子大人KN 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 分布式系统流量防卫兵 随着 Alibaba 的 Java 生态建设,包括 Spring Cloud Alibaba,Rocket,Nacos等多项开源技术的贡献,目前Sentinel 对分布式的各种应用场景都有了良好的支持和适配,这也是为什么我们选择 Sentinel 学习的原因之一(学习成本低,应 阅读全文
posted @ 2021-07-06 13:31 小蚊子大人KN 阅读(259) 评论(0) 推荐(0) 编辑
摘要: package com.box.common.core.thread;import java.util.Collection;import java.util.List;import java.util.concurrent.*;/** * 线程池工具类 */public class ThreadP 阅读全文
posted @ 2021-07-06 11:28 小蚊子大人KN 阅读(562) 评论(0) 推荐(0) 编辑
摘要: package com.box.common.core.text;import com.box.common.core.exception.UtilsException;import java.security.MessageDigest;import java.security.NoSuchAlg 阅读全文
posted @ 2021-07-06 11:26 小蚊子大人KN 阅读(176) 评论(0) 推荐(0) 编辑
摘要: package com.box.common.core.rsa;import com.alibaba.fastjson.JSONObject;import com.alibaba.fastjson.serializer.SerializerFeature;import lombok.extern.s 阅读全文
posted @ 2021-07-06 11:23 小蚊子大人KN 阅读(341) 评论(0) 推荐(0) 编辑
摘要: package com.box.common.core.exception;import com.box.common.core.enums.ErrorCodeEnum;import com.box.common.core.rt.Result;import com.box.common.core.u 阅读全文
posted @ 2021-07-06 11:20 小蚊子大人KN 阅读(57) 评论(0) 推荐(0) 编辑
摘要: SQL注入,跨站脚本攻击(XSS),跨站请求伪造(CSRF)ApiRequestGlobalFilter api请求全局过滤器 ApiRequestXssSqllFilter api请求XssSql过滤器ApiResponseGlobalFilter api返回全部过滤器 VerifyConditi 阅读全文
posted @ 2021-07-06 11:10 小蚊子大人KN 阅读(445) 评论(0) 推荐(0) 编辑
摘要: package com.box.common.core.utils;/** * 文件描述 * * @author yuan.dingwang * @date 2020年11月26日 17:13 */public class JWTToken { private String access_token 阅读全文
posted @ 2021-07-06 10:58 小蚊子大人KN 阅读(51) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/laohanshuibi/p/15078291.htmlStringBuffer key = new StringBuffer(CacheKeyConstant.CECHE_MANAGE_PERMISSION).append(platform);Obj 阅读全文
posted @ 2021-07-06 10:53 小蚊子大人KN 阅读(37) 评论(0) 推荐(0) 编辑
摘要: @FeignClient(name = ServiceNameConstants.MEMBER_SERVICE, path = ServiceNameConstants.MEMBER_PATH)public interface IOldBoxLifeClient extends OldBoxLife 阅读全文
posted @ 2021-07-06 10:50 小蚊子大人KN 阅读(266) 评论(0) 推荐(0) 编辑
摘要: package com.box.redis.service;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.data.redis.core.RedisTemplate;i 阅读全文
posted @ 2021-07-06 10:45 小蚊子大人KN 阅读(339) 评论(0) 推荐(0) 编辑
摘要: //@NoRepeatSubmit package com.box.lock.annotation;import java.lang.annotation.ElementType;import java.lang.annotation.Retention;import java.lang.annot 阅读全文
posted @ 2021-07-06 10:40 小蚊子大人KN 阅读(1067) 评论(0) 推荐(0) 编辑
摘要: @RedisLock(lockName = "device_goods_stock",key="'skuId:'+#skuId" , expire = 2000) /* * Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved. * * h 阅读全文
posted @ 2021-07-06 10:38 小蚊子大人KN 阅读(115) 评论(0) 推荐(0) 编辑