当前位置:网站首页>The successfully resolved idea cannot use the log normally after referencing Lombok's @slf4j
The successfully resolved idea cannot use the log normally after referencing Lombok's @slf4j
2022-06-26 18:42:00 【JobsTribe】
lombok Refer to the jar package
To be referenced in the code lombok Medium @Slf4j, Dependent dependency :
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.8</version>
</dependency>
Wrong content
Code :
@Service
@Slf4j
public class AsyncServiceDemo {
@Async
public void testAsyncService(){
try {
Thread.sleep(10000);
} catch (InterruptedException e) {
log.error("e",e);
}
}
}
But write in the code log when , Has not been able to introduce :
terms of settlement
No plug-ins downloaded Lombok
quote Lombok when , Need to have Lombok Plug in for .
stay File-Setting-Plugins-Marketplace Mid search Lombok Download it later , And then restart idea Then it can be used normally .
边栏推荐
- Using recursion to find all gray codes with n bits
- 为什么我不推荐去SAP培训机构参加培训?
- 【Kubernetes】Kubernetes 原理剖析与实战应用(更新中)
- Interview key points that must be mastered index and affairs (with B-tree and b+ tree)
- Xlua get button registration click event of ugui
- 最小生成树、最短路径、拓扑排序、关键路径
- 刻录光盘的程序步骤
- ROS query topic specific content common instructions
- 微信小程序 uniapp 左滑 删除 带删除icon
- MySQL download and configuration MySQL remote control
猜你喜欢

爬取豆瓣读书Top250,导入sqlist数据库(或excel表格)中

零时科技 | 智能合约安全系列文章之反编译篇

深度学习之Numpy篇

Some basic mistakes

LeetCode 238 除自身以外数组的乘积

Crawl Douban to read top250 and import it into SqList database (or excel table)

Leetcode interview question 29 clockwise print matrix

Deep understanding of MySQL lock and transaction isolation level

自己创建一个时间拦截器

JVM入个门(1)
随机推荐
How to create and enforce indexes
Redis Basics
Jsonutils tool class (based on Alibaba fastjson)
Résumé des points de connaissance
JSONUtils工具类(基于alibaba fastjson)
Record of user behavior log in SSO microservice Engineering
(几何) 凸包问题
为什么我不推荐去SAP培训机构参加培训?
Clion编译catkin_ws(ROS工作空间包的简称)加载CMakeLists.txt出现的问题
Some basic mistakes
成功解决之Jenkins报错:The goal you specified requires a project to execute but there is no POM
Reading notes: process consulting III
gdb安装
知识点总结
GDB installation
JVM entry Door (1)
微信小程序 自定义 弹框组件
8VC Venture Cup 2017 - Final Round C. Nikita and stack
stm32和电机开发(直流有刷电机和步进电机)
最小生成树、最短路径、拓扑排序、关键路径