前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd" default-autowire="byName"> <bean class="org.hongxi.whatsmars.mq.rocketmq.spring.ConsumerFactoryBean"> <property name="consumerGroup" value="quick_start_consumer_group" /> <property name="namesrvAddr" value="127.0.0.1:9876" /> <property name="topic" value="TopicTest" /> <property name="tags" value="*" /> <property name="messageListener" ref="demoMessageListener" /> </bean>
<bean id="demoMessageListener" class="org.hongxi.whatsmars.mq.rocketmq.spring.demo.DemoMessageListener" />
</beans>