在这里插入图片描述 可以类导入apache.poi.xslf PPTXUtils.java 下面代码有些来源官网 package com.geekbang.ppttools; // 导入org.apache.poi 接口 import com.google.common.base.Splitter; import org.apache.poi.xslf.usermodel.XMLSlideShow; import org.apache.poi.xslf.usermodel.XSLFShape; import org.apache.poi.xslf.usermodel.XSLFSlide; import org.apache.poi.xslf.usermodel.XSLFTextShape
lombok.extern.log4j.Log4j @Log4j * @see lombok.extern.log4j.Log4j2 @Log4j2 * @see lombok.extern.slf4j.XSlf4j @XSlf4j * @see lombok.extern.jbosslog.JBossLog @JBossLog * @see lombok.extern.flogger.Flogger
AllArgsConstructor, @RequiredArgsConstructor and @NoArgsConstructor @Log, @Log4j, @Log4j2, @Slf4j, @XSlf4j
AllArgsConstructor, @RequiredArgsConstructor and @NoArgsConstructor @Log, @Log4j, @Log4j2, @Slf4j, @XSlf4j
cn.chenhaoxiang; import lombok.Data; import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.XSlf4j
@XSlf4j private static final org.slf4j.ext.XLogger log = org.slf4j.ext.XLoggerFactory.getXLogger(LogExample.class 当然这也可以被个性化命名,通过topic参数,如 @XSlf4j(topic="reporting")。 4. 原理 lombok 主要通过注解生效,自jdk5引入注解,由两种解析方式。
org.apache.logging.log4j.LogManager.getLogger(LogExample.class); @Slf4j Creates log = org.slf4j.LoggerFactory.getLogger(LogExample.class); @XSlf4j
LogExample.class); * @Slf4j Creates log = org.slf4j.LoggerFactory.getLogger(LogExample.class); * @XSlf4j LogExample.class); * @Slf4j Creates log = org.slf4j.LoggerFactory.getLogger(LogExample.class); * @XSlf4j
RequiredArgsConstructor and @NoArgsConstructor / 顾名思义,为类自动生成对应参数的constructor @Log, @Log4j, @Log4j2, @Slf4j, @XSlf4j
AllArgsConstructor, @RequiredArgsConstructor and @NoArgsConstructor @Log, @Log4j, @Log4j2, @Slf4j, @XSlf4j
private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LogExample.class); @XSlf4j
https://www.sec.gov/Archives/edgar/data/1318605/000149473121000003/xslF345X03/edgardoc.xml 在此次减持完成后不久
Creates private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LogExample.class); @XSlf4j
java.util.logging.Logger java.util.logging.Logger#getLogger(java.lang.String) @CommonsLog @Log4j @Log4j2 @Slf4j @XSlf4j
org.apache.logging.log4j.LogManager.getLogger(LogExample.class); @Slf4j Creates log = org.slf4j.LoggerFactory.getLogger(LogExample.class); @XSlf4j
而且@Log有许多变体: @CommonsLog @Flogger @JBossLog @Log @Log4j @Log4j2 @Slf4j @XSlf4j 默认情况下,记录器的主题
doc格式)- 功能相对有限,主要用于文本提取XWPF(XML Word Processor Format)- 处理Word 2007+文档(.docx格式)- 功能强大,支持复杂的文档操作HSLF和XSLF
org.apache.logging.log4j.LogManager.getLogger(LogExample.class); @Slf4j Creates log = org.slf4j.LoggerFactory.getLogger(LogExample.class); @XSlf4j
org.apache.logging.log4j.LogManager.getLogger(LogExample.class); @Slf4j Creates log = org.slf4j.LoggerFactory.getLogger(LogExample.class); @XSlf4j
@XSlf4j:日志注解,相当于定义变量 log = org.slf4j.ext.XLoggerFactory.getXLogger(LogExample.class)。