05 2022 档案
摘要:1.实现方式 /** * @Author QingHao * @Date: 2022/05/30/ 22:36 * @Describe 有序二叉排序树 */ public class BinarySearchTree<E extends Comparable<E>> { public Node ro
阅读全文
摘要:1.配置类 点击查看代码 package com.example.property.management.config; import com.example.property.management.interceptor.SqlInterceptor; import org.apache.ibat
阅读全文
摘要:#配置静态资源文件夹 spring.resources.static-locations=file:D:/QRImages,classpath:static #设置单个文件上传大小 spring.servlet.multipart.max-file-size=1024MB #设置批量上传文件的总大小
阅读全文
摘要:1.当我们接收的参数是JSON格式时可以使用以下注解 search(@RequestBody CommunityDTO communityDTO) @JsonFormat (pattern= "yyyy-MM-dd HH:mm:ss" ) 2.当我们接收的参数是普通的字符在参数时可以使用以下注解 s
阅读全文
摘要:一般情况下,我们使用Redis作为布隆过滤器的内存介质,所以我们要保证当前项目能够连接到Redis才能将数据加载到布隆过滤器再进后续的操作***(window的Redis不支持Docker中的Redis支持) 添加redis依赖 <dependency> <groupId>org.springfra
阅读全文
摘要:找到server.properties添加配置将ip暴漏出去 ############################# Zookeeper ############################# # Zookeeper connection string (see zookeeper docs
阅读全文
摘要:计算规则为: 总权重为7 第一次执行的时候会选择权重最大的20881,执行完成后20881-总权重,其他的数值不变,得到 -2 1 1 当来到的二轮的时候 20881会通过第一轮的 5 1 1 权重与执行完的权重进行一 一相加得到的二轮的新数据 (5+(-1)) (1+1) (1+1) 按照此算法进
阅读全文
摘要:@Service public class SearchServiceImpl implements ISearchService { } @Service public class SearchLoadServiceImpl implements ISearchService { } 自动装配时,
阅读全文
摘要:使用自定义语句进行模糊查询和使用原生的查询语句进行查询 import cn.tedu.mall.pojo.search.entity.SpuForElastic; import org.springframework.data.elasticsearch.annotations.Query; imp
阅读全文
摘要:Bean @Data public class AdminDetailsVO implements Serializable { private Long id; private String username; private String password; private List<Strin
阅读全文
摘要:package cn.tedu.csmall.product.webapi.config; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.conf
阅读全文
摘要:<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script> <script type="text/javascript"> console.log(document.write(returnCitySN["cip"]+','+return
阅读全文
摘要:< < 小于号 > > 大于号 & & 和 ' ' 单引号 " " 双引号
阅读全文

浙公网安备 33010602011771号