1.安装插件:lombok 2.使用类添加注解:@Slf4j 3.方法内使用:log.info("Response值:",JSONObject.toJSONString(apiResponse.getData())); 来源:https://www.cnblogs.com/banml/p/11637234.html 标签 Spring boot