Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Jeepay
Commits
dc23e607
"vscode:/vscode.git/clone" did not exist on "1cc73384bc6732f9e10578d593b072f555a82a89"
Commit
dc23e607
authored
Jul 02, 2021
by
xiaoyu
Browse files
mq重复问题,配置修改
parent
137609df
Changes
14
Hide whitespace changes
Inline
Side-by-side
conf/manager/application.yml
View file @
dc23e607
...
@@ -24,14 +24,14 @@ spring:
...
@@ -24,14 +24,14 @@ spring:
password
:
password
:
# 注意:以下MQ配置需注意【如需使用activeMQ则需将rabbitMQ配置注释即可】
# 注意:以下MQ配置需注意【如需使用activeMQ则需将rabbitMQ配置注释即可】
profiles
:
#
profiles:
include
:
#
include:
-
activeMQ
#
- activeMQ
# - rabbitMQ # 需要安装延迟队列插件:https://www.rabbitmq.com/blog/2015/04/16/scheduling-messages-with-rabbitmq/
# - rabbitMQ # 需要安装延迟队列插件:https://www.rabbitmq.com/blog/2015/04/16/scheduling-messages-with-rabbitmq/
#activeMQ配置
#activeMQ配置
activemq
:
#
activemq:
broker-url
:
tcp://localhost:61616
#连接地址
#
broker-url: tcp://localhost:61616 #连接地址
#rabbitmq配置
#rabbitmq配置
# rabbitmq:
# rabbitmq:
...
...
conf/merchant/application.yml
View file @
dc23e607
...
@@ -24,14 +24,14 @@ spring:
...
@@ -24,14 +24,14 @@ spring:
password
:
password
:
# 注意:以下MQ配置需注意【如需使用activeMQ则需将rabbitMQ配置注释即可】
# 注意:以下MQ配置需注意【如需使用activeMQ则需将rabbitMQ配置注释即可】
profiles
:
#
profiles:
include
:
#
include:
-
activeMQ
#
- activeMQ
# - rabbitMQ # 需要安装延迟队列插件:https://www.rabbitmq.com/blog/2015/04/16/scheduling-messages-with-rabbitmq/
# - rabbitMQ # 需要安装延迟队列插件:https://www.rabbitmq.com/blog/2015/04/16/scheduling-messages-with-rabbitmq/
#activeMQ配置
#activeMQ配置
activemq
:
#
activemq:
broker-url
:
tcp://localhost:61616
#连接地址
#
broker-url: tcp://localhost:61616 #连接地址
#rabbitmq配置
#rabbitmq配置
# rabbitmq:
# rabbitmq:
...
...
conf/payment/application.yml
View file @
dc23e607
...
@@ -24,14 +24,14 @@ spring:
...
@@ -24,14 +24,14 @@ spring:
password
:
password
:
# 注意:以下MQ配置需注意【如需使用activeMQ则需将rabbitMQ配置注释即可】
# 注意:以下MQ配置需注意【如需使用activeMQ则需将rabbitMQ配置注释即可】
profiles
:
#
profiles:
include
:
#
include:
-
activeMQ
#
- activeMQ
# - rabbitMQ # 需要安装延迟队列插件:https://www.rabbitmq.com/blog/2015/04/16/scheduling-messages-with-rabbitmq/
# - rabbitMQ # 需要安装延迟队列插件:https://www.rabbitmq.com/blog/2015/04/16/scheduling-messages-with-rabbitmq/
#activeMQ配置
#activeMQ配置
activemq
:
#
activemq:
broker-url
:
tcp://localhost:61616
#连接地址
#
broker-url: tcp://localhost:61616 #连接地址
#rabbitmq配置
#rabbitmq配置
# rabbitmq:
# rabbitmq:
...
...
jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/mq/queue/MqQueue4ModifyMchUserRemove.java
View file @
dc23e607
...
@@ -45,14 +45,14 @@ public class MqQueue4ModifyMchUserRemove extends MqMchUserRemoveService {
...
@@ -45,14 +45,14 @@ public class MqQueue4ModifyMchUserRemove extends MqMchUserRemoveService {
@Autowired
private
JmsTemplate
jmsTemplate
;
@Autowired
private
JmsTemplate
jmsTemplate
;
@Bean
(
"
m
odifyMchUserRemove"
)
@Bean
(
"
activeM
odifyMchUserRemove"
)
public
Queue
mqQueue4ModifyMchUserRemove
(){
public
Queue
mqQueue4ModifyMchUserRemove
(){
return
new
ActiveMQQueue
(
CS
.
MQ
.
QUEUE_MODIFY_MCH_USER_REMOVE
);
return
new
ActiveMQQueue
(
CS
.
MQ
.
QUEUE_MODIFY_MCH_USER_REMOVE
);
}
}
@Lazy
@Lazy
@Autowired
@Autowired
@Qualifier
(
"
m
odifyMchUserRemove"
)
@Qualifier
(
"
activeM
odifyMchUserRemove"
)
private
Queue
mqQueue4ModifyMchUserRemove
;
private
Queue
mqQueue4ModifyMchUserRemove
;
@Override
@Override
...
...
jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/mq/queue/MqQueue4PayOrderMchNotify.java
View file @
dc23e607
...
@@ -43,14 +43,14 @@ public class MqQueue4PayOrderMchNotify extends MqPayOrderNotifyService {
...
@@ -43,14 +43,14 @@ public class MqQueue4PayOrderMchNotify extends MqPayOrderNotifyService {
@Autowired
private
JmsTemplate
jmsTemplate
;
@Autowired
private
JmsTemplate
jmsTemplate
;
@Bean
(
"
p
ayOrderMchNotify"
)
@Bean
(
"
activeP
ayOrderMchNotify"
)
public
Queue
mqQueue4PayOrderMchNotify
(){
public
Queue
mqQueue4PayOrderMchNotify
(){
return
new
ActiveMQQueue
(
CS
.
MQ
.
QUEUE_PAYORDER_MCH_NOTIFY
);
return
new
ActiveMQQueue
(
CS
.
MQ
.
QUEUE_PAYORDER_MCH_NOTIFY
);
}
}
@Lazy
@Lazy
@Autowired
@Autowired
@Qualifier
(
"
p
ayOrderMchNotify"
)
@Qualifier
(
"
activeP
ayOrderMchNotify"
)
private
Queue
mqQueue4PayOrderMchNotify
;
private
Queue
mqQueue4PayOrderMchNotify
;
...
...
jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/mq/topic/MqTopic4ModifyIsvInfo.java
View file @
dc23e607
...
@@ -41,14 +41,14 @@ public class MqTopic4ModifyIsvInfo extends MqModifyIsvInfoService {
...
@@ -41,14 +41,14 @@ public class MqTopic4ModifyIsvInfo extends MqModifyIsvInfoService {
@Autowired
private
JmsTemplate
jmsTemplate
;
@Autowired
private
JmsTemplate
jmsTemplate
;
@Bean
(
"
m
odifyIsvInfo"
)
@Bean
(
"
activeM
odifyIsvInfo"
)
public
ActiveMQTopic
mqTopic4ModifyIsvInfo
(){
public
ActiveMQTopic
mqTopic4ModifyIsvInfo
(){
return
new
ActiveMQTopic
(
CS
.
MQ
.
TOPIC_MODIFY_ISV_INFO
);
return
new
ActiveMQTopic
(
CS
.
MQ
.
TOPIC_MODIFY_ISV_INFO
);
}
}
@Lazy
@Lazy
@Autowired
@Autowired
@Qualifier
(
"
m
odifyIsvInfo"
)
@Qualifier
(
"
activeM
odifyIsvInfo"
)
private
ActiveMQTopic
mqTopic4ModifyIsvInfo
;
private
ActiveMQTopic
mqTopic4ModifyIsvInfo
;
@Override
@Override
...
...
jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/mq/topic/MqTopic4ModifyMchApp.java
View file @
dc23e607
...
@@ -43,14 +43,14 @@ public class MqTopic4ModifyMchApp extends MqModifyMchAppService {
...
@@ -43,14 +43,14 @@ public class MqTopic4ModifyMchApp extends MqModifyMchAppService {
@Autowired
private
JmsTemplate
jmsTemplate
;
@Autowired
private
JmsTemplate
jmsTemplate
;
@Bean
(
"
m
odifyMchApp"
)
@Bean
(
"
activeM
odifyMchApp"
)
public
ActiveMQTopic
mqTopic4ModifyMchApp
(){
public
ActiveMQTopic
mqTopic4ModifyMchApp
(){
return
new
ActiveMQTopic
(
CS
.
MQ
.
TOPIC_MODIFY_MCH_APP
);
return
new
ActiveMQTopic
(
CS
.
MQ
.
TOPIC_MODIFY_MCH_APP
);
}
}
@Lazy
@Lazy
@Autowired
@Autowired
@Qualifier
(
"
m
odifyMchApp"
)
@Qualifier
(
"
activeM
odifyMchApp"
)
private
ActiveMQTopic
mqTopic4ModifyMchApp
;
private
ActiveMQTopic
mqTopic4ModifyMchApp
;
/** 推送消息到各个节点 **/
/** 推送消息到各个节点 **/
...
...
jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/mq/topic/MqTopic4ModifyMchInfo.java
View file @
dc23e607
...
@@ -41,14 +41,14 @@ public class MqTopic4ModifyMchInfo extends MqModifyMchInfoService {
...
@@ -41,14 +41,14 @@ public class MqTopic4ModifyMchInfo extends MqModifyMchInfoService {
@Autowired
private
JmsTemplate
jmsTemplate
;
@Autowired
private
JmsTemplate
jmsTemplate
;
@Bean
(
"
m
odifyMchInfo"
)
@Bean
(
"
activeM
odifyMchInfo"
)
public
ActiveMQTopic
mqTopic4ModifyMchInfo
(){
public
ActiveMQTopic
mqTopic4ModifyMchInfo
(){
return
new
ActiveMQTopic
(
CS
.
MQ
.
TOPIC_MODIFY_MCH_INFO
);
return
new
ActiveMQTopic
(
CS
.
MQ
.
TOPIC_MODIFY_MCH_INFO
);
}
}
@Lazy
@Lazy
@Autowired
@Autowired
@Qualifier
(
"
m
odifyMchInfo"
)
@Qualifier
(
"
activeM
odifyMchInfo"
)
private
ActiveMQTopic
mqTopic4ModifyMchInfo
;
private
ActiveMQTopic
mqTopic4ModifyMchInfo
;
@Override
@Override
...
...
jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/mq/topic/MqTopic4ModifySysConfig.java
View file @
dc23e607
...
@@ -44,14 +44,14 @@ public class MqTopic4ModifySysConfig extends MqModifySysConfigService {
...
@@ -44,14 +44,14 @@ public class MqTopic4ModifySysConfig extends MqModifySysConfigService {
@Autowired
private
JmsTemplate
jmsTemplate
;
@Autowired
private
JmsTemplate
jmsTemplate
;
@Autowired
private
SysConfigService
sysConfigService
;
@Autowired
private
SysConfigService
sysConfigService
;
@Bean
(
"
m
odifySysConfig"
)
@Bean
(
"
activeM
odifySysConfig"
)
public
ActiveMQTopic
mqTopic4ModifySysConfig
(){
public
ActiveMQTopic
mqTopic4ModifySysConfig
(){
return
new
ActiveMQTopic
(
CS
.
MQ
.
TOPIC_MODIFY_SYS_CONFIG
);
return
new
ActiveMQTopic
(
CS
.
MQ
.
TOPIC_MODIFY_SYS_CONFIG
);
}
}
@Lazy
@Lazy
@Autowired
@Autowired
@Qualifier
(
"
m
odifySysConfig"
)
@Qualifier
(
"
activeM
odifySysConfig"
)
private
ActiveMQTopic
mqTopic4ModifySysConfig
;
private
ActiveMQTopic
mqTopic4ModifySysConfig
;
/** 接收 更新系统配置项的消息 **/
/** 接收 更新系统配置项的消息 **/
...
...
jeepay-manager/src/main/resources/application.yml
View file @
dc23e607
...
@@ -52,22 +52,22 @@ spring:
...
@@ -52,22 +52,22 @@ spring:
password
:
password
:
# 注意:以下MQ配置需注意【如需使用activeMQ则需将rabbitMQ配置注释即可】
# 注意:以下MQ配置需注意【如需使用activeMQ则需将rabbitMQ配置注释即可】
profiles
:
#
profiles:
include
:
#
include:
-
activeMQ
#
- activeMQ
#
- rabbitMQ # 需要安装延迟队列插件:https://www.rabbitmq.com/blog/2015/04/16/scheduling-messages-with-rabbitmq/
#
- rabbitMQ # 需要安装延迟队列插件:https://www.rabbitmq.com/blog/2015/04/16/scheduling-messages-with-rabbitmq/
#activeMQ配置
#activeMQ配置
activemq
:
#
activemq:
broker-url
:
tcp://localhost:61616
#连接地址
#
broker-url: tcp://localhost:61616 #连接地址
#rabbitmq配置
#rabbitmq配置
#
rabbitmq:
#
rabbitmq:
#
addresses: 127.0.0.1:5672
#
addresses: 127.0.0.1:5672
#
username: guest
#
username: guest
#
password: guest
#
password: guest
#
dynamic: true
#
dynamic: true
#
virtual-host: /
#
virtual-host: /
#日志配置参数。
#日志配置参数。
# 当存在logback-spring.xml文件时: 该配置将引进到logback配置, springboot配置不生效。
# 当存在logback-spring.xml文件时: 该配置将引进到logback配置, springboot配置不生效。
...
...
jeepay-merchant/src/main/resources/application.yml
View file @
dc23e607
...
@@ -52,14 +52,14 @@ spring:
...
@@ -52,14 +52,14 @@ spring:
password
:
password
:
# 注意:以下MQ配置需注意【如需使用activeMQ则需将rabbitMQ配置注释即可】
# 注意:以下MQ配置需注意【如需使用activeMQ则需将rabbitMQ配置注释即可】
profiles
:
#
profiles:
include
:
#
include:
-
activeMQ
#
- activeMQ
# - rabbitMQ # 需要安装延迟队列插件:https://www.rabbitmq.com/blog/2015/04/16/scheduling-messages-with-rabbitmq/
# - rabbitMQ # 需要安装延迟队列插件:https://www.rabbitmq.com/blog/2015/04/16/scheduling-messages-with-rabbitmq/
#activeMQ配置
#activeMQ配置
activemq
:
#
activemq:
broker-url
:
tcp://localhost:61616
#连接地址
#
broker-url: tcp://localhost:61616 #连接地址
#rabbitmq配置
#rabbitmq配置
# rabbitmq:
# rabbitmq:
...
...
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/mq/queue/MqQueue4ChannelOrderQuery.java
View file @
dc23e607
...
@@ -55,14 +55,14 @@ public class MqQueue4ChannelOrderQuery extends MqChannelOrderQueryService {
...
@@ -55,14 +55,14 @@ public class MqQueue4ChannelOrderQuery extends MqChannelOrderQueryService {
@Autowired
private
PayOrderService
payOrderService
;
@Autowired
private
PayOrderService
payOrderService
;
@Autowired
private
ChannelOrderReissueService
channelOrderReissueService
;
@Autowired
private
ChannelOrderReissueService
channelOrderReissueService
;
@Bean
(
"
c
hannelOrderQuery"
)
@Bean
(
"
activeC
hannelOrderQuery"
)
public
Queue
mqQueue4ChannelOrderQuery
(){
public
Queue
mqQueue4ChannelOrderQuery
(){
return
new
ActiveMQQueue
(
CS
.
MQ
.
QUEUE_CHANNEL_ORDER_QUERY
);
return
new
ActiveMQQueue
(
CS
.
MQ
.
QUEUE_CHANNEL_ORDER_QUERY
);
}
}
@Lazy
@Lazy
@Autowired
@Autowired
@Qualifier
(
"
c
hannelOrderQuery"
)
@Qualifier
(
"
activeC
hannelOrderQuery"
)
private
Queue
mqQueue4ChannelOrderQuery
;
private
Queue
mqQueue4ChannelOrderQuery
;
/** 发送MQ消息 **/
/** 发送MQ消息 **/
...
...
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/mq/queue/MqQueue4PayOrderMchNotify.java
View file @
dc23e607
...
@@ -51,14 +51,14 @@ import javax.jms.TextMessage;
...
@@ -51,14 +51,14 @@ import javax.jms.TextMessage;
@Profile
(
CS
.
MQTYPE
.
ACTIVE_MQ
)
@Profile
(
CS
.
MQTYPE
.
ACTIVE_MQ
)
public
class
MqQueue4PayOrderMchNotify
extends
MqPayOrderMchNotifyService
{
public
class
MqQueue4PayOrderMchNotify
extends
MqPayOrderMchNotifyService
{
@Bean
(
"
p
ayOrderMchNotifyInner"
)
@Bean
(
"
activeP
ayOrderMchNotifyInner"
)
public
Queue
mqQueue4PayOrderMchNotifyInner
(){
public
Queue
mqQueue4PayOrderMchNotifyInner
(){
return
new
ActiveMQQueue
(
CS
.
MQ
.
QUEUE_PAYORDER_MCH_NOTIFY
);
return
new
ActiveMQQueue
(
CS
.
MQ
.
QUEUE_PAYORDER_MCH_NOTIFY
);
}
}
@Lazy
@Lazy
@Autowired
@Autowired
@Qualifier
(
"
p
ayOrderMchNotifyInner"
)
@Qualifier
(
"
activeP
ayOrderMchNotifyInner"
)
private
Queue
mqQueue4PayOrderMchNotifyInner
;
private
Queue
mqQueue4PayOrderMchNotifyInner
;
@Autowired
private
JmsTemplate
jmsTemplate
;
@Autowired
private
JmsTemplate
jmsTemplate
;
@Autowired
private
MchNotifyRecordService
mchNotifyRecordService
;
@Autowired
private
MchNotifyRecordService
mchNotifyRecordService
;
...
...
jeepay-payment/src/main/resources/application.yml
View file @
dc23e607
...
@@ -52,14 +52,14 @@ spring:
...
@@ -52,14 +52,14 @@ spring:
password
:
password
:
# 注意:以下MQ配置需注意【如需使用activeMQ则需将rabbitMQ配置注释即可】
# 注意:以下MQ配置需注意【如需使用activeMQ则需将rabbitMQ配置注释即可】
profiles
:
#
profiles:
include
:
#
include:
-
activeMQ
#
- activeMQ
# - rabbitMQ # 需要安装延迟队列插件:https://www.rabbitmq.com/blog/2015/04/16/scheduling-messages-with-rabbitmq/
# - rabbitMQ # 需要安装延迟队列插件:https://www.rabbitmq.com/blog/2015/04/16/scheduling-messages-with-rabbitmq/
#activeMQ配置
#activeMQ配置
activemq
:
#
activemq:
broker-url
:
tcp://localhost:61616
#连接地址
#
broker-url: tcp://localhost:61616 #连接地址
#rabbitmq配置
#rabbitmq配置
# rabbitmq:
# rabbitmq:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment