美文网首页
消息队列总线设计及实现(二)

消息队列总线设计及实现(二)

作者: 西城丶 | 来源:发表于2021-05-06 00:01 被阅读0次

项目引用

implementation 'org.springframework:spring-aop:4.2.5.RELEASE'
implementation 'org.springframework:spring-context:4.2.5.RELEASE'
implementation 'org.springframework:spring-beans:4.2.5.RELEASE'
implementation 'org.springframework:spring-core:4.2.5.RELEASE'
implementation 'org.springframework:spring-test:4.2.5.RELEASE'
compile 'org.apache.pulsar:pulsar-client:2.4.1'
// 这里是采用了公司封装的一个rabbit客户端,本质上还是使用的这个包
compile 'com.rabbitmq:amqp-client:3.5.7'
compile 'com.alibaba:fastjson:1.2.69'
compile('com.aliyun.openservices:ons-client:1.8.4.Final')
compile('com.google.guava:guava:25.1-jre')
compile group: 'org.hibernate', name: 'hibernate-validator', version: '5.2.0.Final'
compile group: 'javax.el', name: 'javax.el-api', version: '3.0.0'
compile group: 'javax.validation', name: 'validation-api', version: '2.0.1.Final'

这里为什么spring使用的版本这么低,因为有很多老项目使用的还是很老的spring版本,4.2.5是项目使用最低版本的,所以是为了兼容老系统。pulsar后续版本也会调上去,改成2.6.x,2.4.1的版本日志会打印很多,升级了版本有些日志不会打印

项目结构

jms-bus
├─jms-bus-config 配置文件存放地址
│ ├─constants 常量类
│ ├─properties 配置参数信息
│ ├─validator 校验实现

├─jms-bus-core 核心模块
| ├─annotation 注解
│ ├─client 客户端注册
│ ├─config 配置信息
│ ├─constants 常量
│ ├─consumer 消费者实现
│ ├─exception 异常信息
│ ├─producer 生产者实现
│ └─utils 工具包

相关文章

网友评论

      本文标题:消息队列总线设计及实现(二)

      本文链接:https://www.haomeiwen.com/subject/gadldltx.html