Spring启动报错:Timeout expired while fetching topic metadata
参考链接:https://blog.csdn.net/qq_39595769/article/details/118419407
找到kafka 的server.properties 文件
Ctrl+F找到advertised 没有的话添加一个
advertised.listeners=PLAINTEXT://当前服务器的ip:9092
我写的是
advertised.listeners=PLAINTEXT://localhost:9092
然后保存退出,重启kafka
开启Kafka的命令:(两个窗口都在安装目录下)
binwindowszookeeper-server-start.bat configzookeeper.properties
binwindowskafka-server-start.bat configserver.properties



