在一个类中创建另外一个类,叫做成员内部类。这个成员内部类可以静态的(利用static关键字修饰),也可以...
import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; import org.springframework.stereotype.Service; import org.springframework.util.StringUtils; import java.text.SimpleDateFormat; import java.util.Date; @Slf4j @Compo...
monitorTopic: monitor 项目启动时使用 logBrokerList变量 @SpringBootApplication public class Application { public static void main(String[] args) throws Exception { SpringApplication.run(Application.class, args); System.out.println("config static test :" + KafkaConfig.getLogBrokerList()); } } 执行...
monitorTopic: monitor 项目启动时使用 logBrokerList变量 @SpringBootApplication public class Application { public static void main(String[] args) throws Exception { SpringApplication.run(Application.class, args); System.out.println("config static test :" + KafkaConfig.getLogBrokerList()); } } 执行...