2021
01-21
01-21
SpringMVC和rabbitmq集成的使用案例
1.添加maven依赖<dependency><groupId>com.rabbitmq</groupId><artifactId>amqp-client</artifactId><version>3.5.1</version></dependency><dependency><groupId>org.springframework.amqp</groupId><artifactId>spring-rabbit</artifactId><version>1.4.5.RELEASE</version></dependency>2.spring主配置文件中加入rabbitMQxml文件的配置<!--rabbitMQ配置--><importresource="/application-mq.xml"/>3.jdbc配置文件中...
继续阅读 >