08 2022 档案

摘要:java中每一个对象都有一个objectMonitor对象与之关联 monitor对象中主要有如下属性: owner:持有当前objectMonitor的线程地址 entrylist:阻塞队列,存放竞争当前monitor对象的线程 waitset:等待队列,存放处于wait状态的线程 synchro 阅读全文
posted @ 2022-08-30 14:33 无极是一种信仰 阅读(15) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/FlyGoldfish/articles/14110996.html 阅读全文
posted @ 2022-08-30 09:12 无极是一种信仰 阅读(4) 评论(0) 推荐(0) 编辑
摘要:dispatcherServlet: 前置控制器,在spring项目启动时生成,初始化其中的handler mapper,handlder adapter,view response。 作为http请求的入口,dispatcherServlet会先通过handler mapper将url映射得到Ha 阅读全文
posted @ 2022-08-29 17:38 无极是一种信仰 阅读(15) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/jay1452/article/details/115236081 阅读全文
posted @ 2022-08-29 10:43 无极是一种信仰 阅读(11) 评论(0) 推荐(0) 编辑
摘要:@Transactonal 的实现原理: 通过spring aop对方法进行环绕增强,环绕增强的逻辑: 开启事务() try{ 原方法 }catch(对应的异常 ){ 回滚逻辑 } 提交事务 @Transactional 注解属性: propagation 代表事务的传播行为,默认值为 Propag 阅读全文
posted @ 2022-08-29 10:42 无极是一种信仰 阅读(48) 评论(0) 推荐(0) 编辑
摘要:spring aop怎么用与实现原理:https://blog.csdn.net/u012098021/article/details/116802329 spring aop: 定义advisor advisor:Pointcut 与 Advice Advice:增强方法 Pointcut:Cla 阅读全文
posted @ 2022-08-28 22:04 无极是一种信仰 阅读(13) 评论(0) 推荐(0) 编辑
摘要:原料:[2,4,7,5] traget: 47 1.原料随便取,判断能不能等于target,最少取几次 :一维DP 2.原料只能取一次,判断能不能等于target,最少取几次 :二维DP 3.原料只能取两次,判断能不能等于target,最少取几次 :可转换为题2 3.原料加起来只能取N次,判断能不能 阅读全文
posted @ 2022-08-26 23:35 无极是一种信仰 阅读(10) 评论(0) 推荐(0) 编辑
摘要:static int flag=0; public boolean isBalanced(TreeNode root) { flag=0; travel12(root); if(flag==1){ return false; } else { return true; } } public int 阅读全文
posted @ 2022-08-24 16:36 无极是一种信仰 阅读(10) 评论(0) 推荐(0) 编辑
摘要:public static void mergeSort(int[] arr1,int left,int right){ if(left>=right){ return; } int middle=(left+right)/2; mergeSort(arr1,left,middle); mergeS 阅读全文
posted @ 2022-08-24 11:10 无极是一种信仰 阅读(14) 评论(0) 推荐(0) 编辑
摘要:public static void main(String[] args) { int[] array1=new int[]{2,3,4,1,5,2,6,4,7,8}; fastSort(array1, 0, array1.length-1); for(int k:array1){ System. 阅读全文
posted @ 2022-08-24 10:34 无极是一种信仰 阅读(19) 评论(0) 推荐(0) 编辑
摘要:public ListNode sortList(ListNode head) { ListNode headpre=new ListNode(); headpre.next=head; int length=0; while(head!=null){ head=head.next; length+ 阅读全文
posted @ 2022-08-23 22:45 无极是一种信仰 阅读(20) 评论(0) 推荐(0) 编辑
摘要:1.两次握手无法避免历史连接: 一个旧的SYN报文比最新的SYN报文早到,然后服务端传给客户端对应SYN的确认应答号,客户端接受后根据 上下文发现该应答号不匹配,则第三次发送标志位RST以中止该历史连接,如果只有两次的话则无法做到。 2.同步双⽅初始序列号 阅读全文
posted @ 2022-08-21 22:45 无极是一种信仰 阅读(84) 评论(0) 推荐(0) 编辑
摘要:1. 解析url url由三部分组成:http:// + 域名 + 文件路径名 当没有路径名时,就代表访问根⽬录下事先设置的默认⽂件 /index.html 2.解析url后,游览器确定了协议、服务器与文件名,开始生成http请求消息 http请求报文:请求行+消息头+消息体 http响应报文:状态 阅读全文
posted @ 2022-08-21 11:49 无极是一种信仰 阅读(25) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/weixin_43862596/article/details/111919551 阅读全文
posted @ 2022-08-19 16:53 无极是一种信仰 阅读(3) 评论(0) 推荐(0) 编辑
摘要:1.修改host文件 vim /etc/hosts 2. 酱紫改 106.13.26.144 ls2rZsaaHi 106.13.26.144是公网ip,ls2rZsaaHi是主机名 主机名怎么看? hostname查看主机名 保存hosts文件,然后重启dubbo服务,这样外网就能调到了 阅读全文
posted @ 2022-08-19 10:49 无极是一种信仰 阅读(31) 评论(0) 推荐(0) 编辑
摘要:先讲下后端给前端传值,也就是controller跳到html页面时,向html传值的过程,一般2种方法。 0.freemaker通过 <#list>打印 //直接传对象 model.addAttribute("historyList", datas); //循环渲染 <#list historyLi 阅读全文
posted @ 2022-08-17 15:37 无极是一种信仰 阅读(619) 评论(0) 推荐(0) 编辑
摘要:不同的存储引擎实现同一个接口,为上层(mysql service)提供基础服务 字符集(编码方式):ascii,gbk,utf-8 比较规则 客户端发送“孙佳锦”给mysql服务端,会先将“孙佳锦”改为客户端的编码方案,mysql接受后,会用character_set_client进行解码,然后用c 阅读全文
posted @ 2022-08-08 20:24 无极是一种信仰 阅读(12) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/qq_37495786/article/details/105925574 阅读全文
posted @ 2022-08-07 22:12 无极是一种信仰 阅读(40) 评论(0) 推荐(0) 编辑
摘要:https://github.com/bung87/bixin python拉取消息:https://www.cnblogs.com/eliwang/p/15698648.html 启动redis:redis-server 关闭redis:./redis-cli shutdown redis:htt 阅读全文
posted @ 2022-08-06 14:55 无极是一种信仰 阅读(5) 评论(0) 推荐(0) 编辑
摘要:python操作mq :https://www.cnblogs.com/eliwang/p/15698648.html python安装mqclient:pip3 install rocketmq python 运行文件 python -u test.py 阅读全文
posted @ 2022-08-06 10:52 无极是一种信仰 阅读(71) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/wen_877591354/article/details/125249409 阅读全文
posted @ 2022-08-05 23:37 无极是一种信仰 阅读(12) 评论(0) 推荐(0) 编辑
摘要:关闭 gitlab-ctl stop 启动zookeeper: 进入zookeeper的bin目录后 ./zkServer.sh start 阅读全文
posted @ 2022-08-05 23:29 无极是一种信仰 阅读(21) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/qq_52552691/article/details/123673482 阅读全文
posted @ 2022-08-05 14:34 无极是一种信仰 阅读(4) 评论(0) 推荐(0) 编辑
摘要:代理:https://blog.csdn.net/weixin_44404384/article/details/114675894 安装与使用nignx:https://blog.csdn.net/weixin_45486926/article/details/125007879 阅读全文
posted @ 2022-08-05 12:40 无极是一种信仰 阅读(13) 评论(0) 推荐(0) 编辑
摘要:https://my.oschina.net/piaoxianren/blog/4948596 阅读全文
posted @ 2022-08-04 17:40 无极是一种信仰 阅读(22) 评论(0) 推荐(0) 编辑
摘要:(32条消息) JWT详解_baobao555#的博客-CSDN博客_jwt 阅读全文
posted @ 2022-08-04 16:10 无极是一种信仰 阅读(5) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/qq_45803593/article/details/124727762 阅读全文
posted @ 2022-08-04 13:58 无极是一种信仰 阅读(4) 评论(0) 推荐(0) 编辑
摘要:终端操作: 查找与匹配: anyMatch() allMatch() noMatch() findAny().get() findFirst().get() foreach() :返回为空 collect():返回集合 规约:stream().reduce(初始值,(a,b)->(a*b)) cou 阅读全文
posted @ 2022-08-01 16:57 无极是一种信仰 阅读(453) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示