![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java 基础
qq_22094297
这个作者很懒,什么都没留下…
展开
-
Mybatis
Mybatis报错: Parameter 'XXX' not found. Available parameters are [arg1, arg0, param1, param2]解决方案及问题根源 废话不多说,先上解决方案 解决方案一:在参数前加上@Param注解 解决方案二:修改idea设置 File->Settings->Build,Execution,Deployment->Compiler->Java Compi...原创 2020-12-23 16:37:19 · 141 阅读 · 0 评论 -
线程池是如何做到复用的?有源码有真相
1.线程池作用不再介绍,大家都知道 2.结构 借用一张图: 3.干活线程是如何做到复用的 static ExecutorService newfixed=Executors.newFixedThreadPool(6);//初始化线程池 newfixed.execute(new ThreadDemo01(list));//提交任务 publi...原创 2020-04-07 15:27:33 · 423 阅读 · 1 评论 -
数组排序
public static void main(String[] args) { Integer[] arr={9,8,7,6,11,4,23,2,1}; //降序 1 Arrays.sort(arr,Collections.reverseOrder()); for(int i:arr){ System.out.println(i); ...原创 2020-03-19 20:25:21 · 79 阅读 · 0 评论