springboot activemq gradle构建示例
1,build.gradle
buildscript { ext { springBootVersion = "1.5.4.RELEASE" } repositories { maven { url "http://maven.aliyun.com/nexus/content/groups/public/" } } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") } } apply plugin: 'org.springframework.boot' dependencyManagement { imports { mavenBom "org.springframework.cloud:spring-cloud-dependencies:Dalston.RELEASE" } } dependencies { compile 'org.springframework.boot:spring-boot-starter-activemq' testCompile 'junit:junit:4.12' testCompile("org.springframework.boot:spring-boot-starter-test") }
2, application.yml
spring: activemq: broker-url: tcp://192.168.176.136:61616 in-memory: true pool: enabled: false
工程源码地址:
https://github.com/luozhonghua/spring-cloud-dubbo
activemq centos环境配置、验证
https://blog.****.net/luozhonghua2014/article/details/80289244
参考
https://www.cnblogs.com/zq-boke/p/6738895.html