In springboot project, when using annotations @ Slf4j, log variables can not be used. The guide is coated with
import lombok.extern.slf4j.Slf4j;
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
Solution :( use idea) lombox download and install plug-ins.
1, File → settings → Plugins, then click on the "Browse repositories"
2, input lombok search plug-in, point install installation, reboot after installing idea
Original: https: //blog.csdn.net/qq_26346457/article/details/78736373