知识总结
java_陈序猿
工作总结积累
展开
-
poi生成带图片word
//Blank Document XWPFDocument document = new XWPFDocument(); //Write the Document in file system FileOutputStream out = new FileOutputStream(new File("C:\\Users\\cYS2646\\Desktop\\POI图片文件生产.docx")); //添加标题 XWPFParag.转载 2021-02-24 14:10:12 · 1024 阅读 · 2 评论 -
知识总结-待办事项
=========SpringMVC Springboot dispatchservlet aop动态代理 jdk 实现接口 invocationhandler method.invoke(obj,args); cglib 继承覆写父类方法事件 ApplicationEvent ApplicationEventPublisherdeferredResult long polling分布式事务seataapollo xxl-jobthreadlocal =》 存放线程的...原创 2021-02-19 10:01:11 · 334 阅读 · 0 评论 -
知识总结-设计模式
项目中常用的设计模式有:模板模式、策略模式、建造者模式、工厂模式、单例模式、代理模式、观察者模式、适配器模式 模板模式:双亲委派模式 策略模式:调用同一个方法传入不同策略的实现对象的相同方法,返回统一格式的结果,到达代码复用的目的。 建造者模式:假设我要new 一个person对象,我用建造者模式的话是 Person.createBuilder().appendName("maple").appendAge(18).build(); 单例模式:内部类饿汉式 或者 懒汉式 volati原创 2021-02-18 17:32:58 · 96 阅读 · 0 评论 -
知识总结-多线程编程
SpringMVC Springboot事件 ApplicationEvent ApplicationEventPublisherdeferredResult long polling线程池 submit excute 区别runnable callable futureTask runfuture ExcutorService threadpoolExcutor@async分布式事务apollo xxl-job设计模式 单例、工厂、 建造者 ,装饰 、代理 、适配器 、 策略、观察者.原创 2020-12-23 10:16:48 · 80 阅读 · 0 评论