查看log报红的类是否有 @Slf4j 注解,有的话项目使用了lombok开发,安装lombok插件。 如何安装? File–Settings–选中Plugins–搜索lombok–安装后再重启idea。