Connection error: org. Apache. Rocketmq. Client. Exception. MQClientException: No route info of this topic

1. Configure conf/borker.config

NamesrvAddr = 127.0.0.1:9876 borkerIP1 = 127.0.0.1Copy the code

2, Modify maven dependency version, version 4.4.0 support automatic creation of topics

< the dependency > < groupId > org. Apache. Rocketmq < / groupId > < artifactId > rocketmq - client < / artifactId > < version > 4.4.0 < / version > </dependency>Copy the code