2021
12-10
12-10
基于SpringBoot中activeMq的JmsTemplate的实例
SpringBoot中使用activeMq的步骤:1、pom中引入jar包:<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-activemq</artifactId></dependency><dependency><groupId>org.apache.activemq</groupId><artifactId>activemq-pool</artifact...
继续阅读 >
1.1添加依赖 可以手动在SpringBoot项目添加依赖,也可以在项目创建时选择使用ActiveMQ5自动添加依赖。高版本SpringBoot(2.0以上)在添加activemq连接池依赖启动时会报Errorcreatingbeanwithname'xxx':Unsatisfieddependencyexpressedthroughfield'jmsTemplate';可以将activemq连接池换成jms连接池解决。<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-bo...