<!--引入lombok-->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
yml配置
logging:
level:
com:
cao:
rabbitmqboot: debug
@Slf4j
public class TopicCustomer {
public void receive2(String message){
log.info(“message2:”+message);
}
}