提交 755ca413 authored 作者: 林业通's avatar 林业通

日志路劲修改

上级 f65f8d2b
package tech.glinfo.enbao.config;
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 tech.glinfo.enbao.common.contants.AppContants;
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);
}
@Bean
public Topic socketioTopic(){
return new ActiveMQTopic(AppContants.SOCKETIO_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
...@@ -3,9 +3,9 @@ spring: ...@@ -3,9 +3,9 @@ spring:
type: com.alibaba.druid.pool.DruidDataSource type: com.alibaba.druid.pool.DruidDataSource
druid: druid:
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3306/glinfo?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai url: jdbc:mysql://172.19.211.95:3306/glinfo?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
username: enbao username: glinfo
password: Enbao!2# password: Glinfo#123
initial-size: 10 initial-size: 10
max-active: 100 max-active: 100
min-idle: 10 min-idle: 10
......
...@@ -14,4 +14,6 @@ public class ShFamilyMemberDto { ...@@ -14,4 +14,6 @@ public class ShFamilyMemberDto {
private String nickname; private String nickname;
private Integer isAdmin; private Integer isAdmin;
private Integer status;
} }
...@@ -85,7 +85,7 @@ logging: ...@@ -85,7 +85,7 @@ logging:
level: level:
root: info root: info
tech.glinfo: debug tech.glinfo: debug
path: ./logs/appapi path: ./logs/glinfoapi
file: appapi.log file: appapi.log
virtdevice: virtdevice:
......
...@@ -85,7 +85,7 @@ logging: ...@@ -85,7 +85,7 @@ logging:
level: level:
root: info root: info
tech.glinfo: debug tech.glinfo: debug
path: ./logs/appapi path: ./logs/glinfoapi
file: appapi.log file: appapi.log
virtdevice: virtdevice:
......
...@@ -87,7 +87,7 @@ logging: ...@@ -87,7 +87,7 @@ logging:
level: level:
root: info root: info
tech.glinfo: debug tech.glinfo: debug
path: ./logs/appapi path: ./logs/glinfoapi
file: appapi.log file: appapi.log
virtdevice: virtdevice:
......
...@@ -87,7 +87,7 @@ logging: ...@@ -87,7 +87,7 @@ logging:
level: level:
root: info root: info
tech.glinfo: debug tech.glinfo: debug
path: ./logs/appapi path: ./logs/glinfoapi
file: appapi.log file: appapi.log
virtdevice: virtdevice:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论