Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张云鹏
/
uc-consumer
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
a5c032a4
...
a5c032a4c4f5e3c91879a3f65e2e626faf21723e
authored
2022-04-10 20:05:59 +0800
by
xianghan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1.update
1 parent
599627e3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
src/main/java/com/topdraw/config/RabbitMqConfig.java
src/main/resources/config/application-dev.yml
src/main/java/com/topdraw/config/RabbitMqConfig.java
View file @
a5c032a
...
...
@@ -9,9 +9,7 @@ import org.springframework.amqp.rabbit.listener.RabbitListenerContainerFactory;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.boot.autoconfigure.amqp.SimpleRabbitListenerContainerFactoryConfigurer
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Conditional
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Primary
;
...
...
@@ -139,7 +137,7 @@ public class RabbitMqConfig {
public
static
final
String
UC_DIRECT_MANAGEMENT
=
"uc.direct.management"
;
// uc-service-management 2 uc-consumer-iptv
// public static final String ENGINE_TO_SERVICE_DIRECT = "uc.engine.service.direct";
public
static
final
String
ENGINE_TO_SERVICE_DIRECT
=
"uc.engine.service.direct
.local
"
;
public
static
final
String
ENGINE_TO_SERVICE_DIRECT
=
"uc.engine.service.direct"
;
@Bean
public
Queue
managementDirect
()
{
...
...
src/main/resources/config/application-dev.yml
View file @
a5c032a
...
...
@@ -7,7 +7,7 @@ spring:
# username: root
# # 密码
# password: Tjlh@2017
url
:
jdbc:log4jdbc:mysql://122.112.214.149:3306/tj_user_
admin
?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false
url
:
jdbc:log4jdbc:mysql://122.112.214.149:3306/tj_user_
iptv
?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false
username
:
root
password
:
root
# 驱动程序
...
...
@@ -80,11 +80,11 @@ mutil-mq:
# virtual-host: /member_center
host
:
122.112.214.149
# rabbitmq的连接地址
port
:
5672
# rabbitmq的连接端口号
# virtual-host: member_center # rabbitmq的虚拟hosthhh
virtual-host
:
member_center
# rabbitmq的虚拟hosthhh
username
:
guest
# rabbitmq的用户名
password
:
guest
# rabbitmq的密码
publisher-confirms
:
true
#如果对异步消息需要回调必须设置为true
startup
:
off
# 管理侧
management
:
...
...
@@ -114,7 +114,6 @@ mutil-mq:
username
:
guest
# rabbitmq的用户名
password
:
guest
# rabbitmq的密码
publisher-confirms
:
true
#如果对异步消息需要回调必须设置为true
startup
:
on
# 服务属性
service
:
...
...
@@ -125,4 +124,4 @@ service:
# uc-engine服务地址
api
:
baseUrl
:
\ No newline at end of file
baseUrl
:
http://127.0.0.1:8447
\ No newline at end of file
...
...
Please
register
or
sign in
to post a comment