lombok.extern.log4j.Log4j2.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(4.0k)|赞(0)|评价(0)|浏览(371)

本文整理了Java中lombok.extern.log4j.Log4j2.<init>()方法的一些代码示例,展示了Log4j2.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Log4j2.<init>()方法的具体详情如下:
包路径:lombok.extern.log4j.Log4j2
类名称:Log4j2
方法名:<init>

Log4j2.<init>介绍

暂无

代码示例

代码示例来源:origin: ChinaSilence/any-video

/**
 * 友情链接
 */
@Service
@Log4j2
@AllArgsConstructor
public class FriendLinkServiceImpl implements FriendLinkService {

  private final FriendLinkMapper friendLinkMapper;

  public List<FriendLink> listHome() {
    return friendLinkMapper.selectShowEqYesDesc();
  }

}

代码示例来源:origin: ChinaSilence/any-video

@Log4j2
public class JsoupUtils {
  private static final String UA_PHONE = "Mozilla/5.0 (Linux; Android 4.3; Nexus 10 Build/JSS15Q) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.23 Safari/537.36";

代码示例来源:origin: ChinaSilence/any-video

@Log4j2
public class UrlUtils {

代码示例来源:origin: ChinaSilence/any-video

@Log4j2
public class CollectionUtils {

代码示例来源:origin: ChinaSilence/any-video

@Service
@Log4j2
public class VideoParserManager implements ParserManager {

代码示例来源:origin: ChinaSilence/any-video

@Log4j2
public class Tencent implements Parser<Video> {
  private final static String VIDEO_API = "http://h5vv.video.qq.com/getinfo";

代码示例来源:origin: ChinaSilence/any-video

@Log4j2
public class VideoSearch {

代码示例来源:origin: ChinaSilence/any-video

@Service
@Log4j2
@AllArgsConstructor
public class HubItemServiceImpl implements HubItemService {

代码示例来源:origin: ChinaSilence/any-video

@Log4j2
@AllArgsConstructor
public class HubItemAPI {

代码示例来源:origin: ChinaSilence/any-video

@Log4j2
@AllArgsConstructor
public class HubServiceImpl implements HubService {

代码示例来源:origin: ChinaSilence/any-video

@Service
@AllArgsConstructor
@Log4j2
public class UserServiceImpl implements UserService {

代码示例来源:origin: ChinaSilence/any-video

@Log4j2
public class TagUtils implements InitializingBean {

代码示例来源:origin: ChinaSilence/any-video

@Log4j2
@AllArgsConstructor
public class QqCrawler {

代码示例来源:origin: FlowCI/flow-platform

@Log4j2
public abstract class AbstractContextInitHandler implements ApplicationListener<ContextRefreshedEvent> {

  public abstract SpringContext getSpringContext();

  @Override
  public void onApplicationEvent(ContextRefreshedEvent event) {
    // init queue consumer
    for (String eventClassName : getSpringContext().getBeanNameByType(ContextEvent.class)) {
      ContextEvent eventClass = (ContextEvent) getSpringContext().getBean(eventClassName);
      eventClass.start();
      log.trace("{} started", eventClassName);
    }
  }
}

代码示例来源:origin: FlowCI/flow-platform

/**
 * @author yh@firim
 */
@Log4j2
public abstract class AbstractContextCloseHandler implements ApplicationListener<ContextClosedEvent> {

  public abstract ThreadPoolTaskExecutor getTaskExecutor();

  public abstract SpringContext getSpringContext();

  @Override
  public void onApplicationEvent(ContextClosedEvent event) {

    for (String eventClassName : getSpringContext().getBeanNameByType(ContextEvent.class)) {
      ContextEvent eventClass = (ContextEvent) getSpringContext().getBean(eventClassName);
      if (eventClass == null) {
        continue;
      }
      eventClass.stop();
      log.trace("{} stopped", eventClassName);
    }

    getTaskExecutor().setWaitForTasksToCompleteOnShutdown(true);
    getTaskExecutor().setAwaitTerminationSeconds(10);
    getTaskExecutor().shutdown();
  }
}

代码示例来源:origin: FlowCI/flow-platform

@Log4j2
public final class WebhookCallBackTask implements Runnable {

代码示例来源:origin: FlowCI/flow-platform

@Log4j2
public class DBInfoLoader implements SystemInfoLoader {

代码示例来源:origin: FlowCI/flow-platform

/**
 * @author yang
 */
@Log4j2
@ControllerAdvice
public class GlobalExceptionHandler {

  @ExceptionHandler(FlowException.class)
  @ResponseStatus(value = HttpStatus.BAD_REQUEST)
  @ResponseBody
  public ResponseError handleFlowException(HttpServletRequest request, FlowException e) {
    return new ResponseError(e.getMessage());
  }

  @ExceptionHandler(Throwable.class)
  @ResponseStatus(value = HttpStatus.INTERNAL_SERVER_ERROR)
  @ResponseBody
  public ResponseError handleFatalException(HttpServletRequest request, Throwable e) {
    log.error(e);
    return new ResponseError(e.getMessage());
  }
}

代码示例来源:origin: FlowCI/flow-platform

@Log4j2
public class CmdUtil {

代码示例来源:origin: FlowCI/flow-platform

@Log4j2
public class App {

相关文章

Log4j2类方法