摘要: 介绍一下线程池的几大参数 下面看一下参数最多的 一个线程方法 public ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runna 阅读全文
posted @ 2022-06-03 15:33 zhangshuai2496689659 阅读(103) 评论(0) 推荐(0)
摘要: 参考视频:https://www.imooc.com/learn/1158 参考博客:https://www.zhihu.com/question/25536695/answer/221638079 理论部分: 本地过程调用 RPC就是要像调用本地的函数一样去调远程函数。在研究RPC前,我们先看看本 阅读全文
posted @ 2022-03-31 20:23 zhangshuai2496689659 阅读(153) 评论(0) 推荐(0)
摘要: springboot 集成Swagger2报错 访问浏览器出现如下错误: Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback. 阅读全文
posted @ 2022-03-30 17:30 zhangshuai2496689659 阅读(545) 评论(0) 推荐(0)
摘要: Git 1、git框架介绍 2、列举工作中常用的几个git命令?3、提交时发生冲突,如何解决?4、新建git功能分支的步骤?5、 说明GIT合并的两种方法以及区别。6、Git提交代码的步骤7、 idea集成git7.1 File-->settings-->Version Control-->Git如 阅读全文
posted @ 2022-03-08 09:47 zhangshuai2496689659 阅读(75) 评论(0) 推荐(0)
摘要: class Solution { public List<List<Integer>> permuteUnique(int[] nums) { int length = nums.length; List<List<Integer>> res = new ArrayList<>(); if(leng 阅读全文
posted @ 2022-02-25 10:41 zhangshuai2496689659 阅读(19) 评论(0) 推荐(0)
摘要: public int findMaxForm(String[] strs, int m, int n) { int length = strs.length; int[][][] dp = new int[length + 1][m + 1][n + 1]; for (int i = 1; i <= 阅读全文
posted @ 2022-02-22 10:51 zhangshuai2496689659 阅读(30) 评论(0) 推荐(0)
摘要: 给你一个整数 x ,如果 x 是一个回文整数,返回 true ;否则,返回 false 。回文数是指正序(从左向右)和倒序(从右向左)读都是一样的整数。 例如,121 是回文,而 123 不是。 若干种解法: 方法一: public boolean isPalindrome(int x) { Str 阅读全文
posted @ 2022-02-21 20:50 zhangshuai2496689659 阅读(21) 评论(0) 推荐(0)
摘要: 在一个由 '0' 和 '1' 组成的二维矩阵内,找到只包含 '1' 的最大正方形,并返回其面积。 public int maximalSquare(char[][] matrix) { if (matrix.length == 0) return 0; int rows = matrix.lengt 阅读全文
posted @ 2022-02-21 11:07 zhangshuai2496689659 阅读(74) 评论(0) 推荐(0)