activeMQ学习(二、与springboot集成)
POOM文件 首先导入activemq所需的jar包 <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-activemq</artifactId> </dependency> </dependencies> 生产者 application.yml server: port: 8090 servlet: context-path: /activemqProducer spring: activemq: broker-url: tcp://127.0.0.1:61616 user: 123 password: 123