Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
G
glinfo-api
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
林业通
glinfo-api
Commits
9770699d
提交
9770699d
authored
1月 07, 2022
作者:
linzhenjie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改配置信息
上级
a8ab1357
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
9 行增加
和
55 行删除
+9
-55
application-dev.yml
appapi/src/main/resources/application-dev.yml
+1
-1
application-local.yml
appapi/src/main/resources/application-local.yml
+1
-1
application-prod.yml
appapi/src/main/resources/application-prod.yml
+1
-1
application-test.yml
appapi/src/main/resources/application-test.yml
+1
-1
MyActiveMqConfig.java
.../main/java/tech/glinfo/enbao/config/MyActiveMqConfig.java
+0
-50
pom.xml
parent/pom.xml
+5
-1
没有找到文件。
appapi/src/main/resources/application-dev.yml
浏览文件 @
9770699d
...
@@ -84,7 +84,7 @@ pay:
...
@@ -84,7 +84,7 @@ pay:
logging
:
logging
:
level
:
level
:
root
:
info
root
:
info
com.gltech
:
debug
tech.glinfo
:
debug
path
:
./logs/appapi
path
:
./logs/appapi
file
:
appapi.log
file
:
appapi.log
...
...
appapi/src/main/resources/application-local.yml
浏览文件 @
9770699d
...
@@ -84,7 +84,7 @@ pay:
...
@@ -84,7 +84,7 @@ pay:
logging
:
logging
:
level
:
level
:
root
:
info
root
:
info
com.gltech
:
debug
tech.glinfo
:
debug
path
:
./logs/appapi
path
:
./logs/appapi
file
:
appapi.log
file
:
appapi.log
...
...
appapi/src/main/resources/application-prod.yml
浏览文件 @
9770699d
...
@@ -86,7 +86,7 @@ pay:
...
@@ -86,7 +86,7 @@ pay:
logging
:
logging
:
level
:
level
:
root
:
info
root
:
info
com.gltech
:
debug
tech.glinfo
:
debug
path
:
./logs/appapi
path
:
./logs/appapi
file
:
appapi.log
file
:
appapi.log
...
...
appapi/src/main/resources/application-test.yml
浏览文件 @
9770699d
...
@@ -86,7 +86,7 @@ pay:
...
@@ -86,7 +86,7 @@ pay:
logging
:
logging
:
level
:
level
:
root
:
info
root
:
info
com.gltech
:
debug
tech.glinfo
:
debug
path
:
./logs/appapi
path
:
./logs/appapi
file
:
appapi.log
file
:
appapi.log
...
...
common/src/main/java/tech/glinfo/enbao/config/MyActiveMqConfig.java
deleted
100644 → 0
浏览文件 @
a8ab1357
package
tech
.
glinfo
.
enbao
.
config
;
import
tech.glinfo.enbao.common.contants.AppContants
;
import
org.apache.activemq.command.ActiveMQQueue
;
import
org.apache.activemq.command.ActiveMQTopic
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.jms.config.DefaultJmsListenerContainerFactory
;
import
org.springframework.jms.config.JmsListenerContainerFactory
;
import
javax.jms.ConnectionFactory
;
import
javax.jms.Queue
;
import
javax.jms.Topic
;
@Configuration
public
class
MyActiveMqConfig
{
@Bean
public
Queue
sendQueue
()
{
return
new
ActiveMQQueue
(
AppContants
.
RECEIVE_QUEUE
);
}
@Bean
public
Queue
sendPushQueue
()
{
return
new
ActiveMQQueue
(
AppContants
.
PUSH_QUEUE
);
}
@Bean
public
Topic
sendTopic
(){
return
new
ActiveMQTopic
(
AppContants
.
SEND_TOPIC
);
}
@Bean
public
Topic
websocketTopic
(){
return
new
ActiveMQTopic
(
AppContants
.
WEBSOCKET_TOPIC
);
}
//Topic模式
@Bean
public
JmsListenerContainerFactory
<?>
jmsListenerContainerTopic
(
ConnectionFactory
connectionFactory
)
{
DefaultJmsListenerContainerFactory
bean
=
new
DefaultJmsListenerContainerFactory
();
bean
.
setPubSubDomain
(
true
);
bean
.
setConnectionFactory
(
connectionFactory
);
return
bean
;
}
//Queue模式
@Bean
public
JmsListenerContainerFactory
<?>
jmsListenerContainerQueue
(
ConnectionFactory
connectionFactory
)
{
DefaultJmsListenerContainerFactory
bean
=
new
DefaultJmsListenerContainerFactory
();
bean
.
setConnectionFactory
(
connectionFactory
);
return
bean
;
}
}
\ No newline at end of file
parent/pom.xml
浏览文件 @
9770699d
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<parent>
<parent>
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-parent
</artifactId>
<artifactId>
spring-boot-starter-parent
</artifactId>
<version>
2.
1.8
.RELEASE
</version>
<version>
2.
2.4
.RELEASE
</version>
</parent>
</parent>
<properties>
<properties>
...
@@ -91,6 +91,10 @@
...
@@ -91,6 +91,10 @@
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-activemq
</artifactId>
<artifactId>
spring-boot-starter-activemq
</artifactId>
</dependency>
</dependency>
<dependency>
<groupId>
org.messaginghub
</groupId>
<artifactId>
pooled-jms
</artifactId>
</dependency>
<!--<dependency>-->
<!--<dependency>-->
<!--<groupId>org.springframework.boot</groupId>-->
<!--<groupId>org.springframework.boot</groupId>-->
<!--<artifactId>spring-boot-devtools</artifactId>-->
<!--<artifactId>spring-boot-devtools</artifactId>-->
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论