Commit acfddaca by zhangjw

1:完善TEST环境配置

parent 70eef023
...@@ -26,6 +26,13 @@ spring: ...@@ -26,6 +26,13 @@ spring:
password: LSlX0JKkD34U3oY3hwI5 password: LSlX0JKkD34U3oY3hwI5
port: 6379 port: 6379
rabbitmq:
host: 127.0.0.1
port: 5672
username: root
password: TYWu154pBpvr
order-queue-name: push.order
# 打印SQL语句和结果集,本地开发环境可开启,线上注释掉 # 打印SQL语句和结果集,本地开发环境可开启,线上注释掉
mybatis-plus: mybatis-plus:
configuration: configuration:
......
...@@ -16,7 +16,6 @@ import com.ym.im.util.JsonUtils; ...@@ -16,7 +16,6 @@ import com.ym.im.util.JsonUtils;
import com.ym.im.validation.group.*; import com.ym.im.validation.group.*;
import io.netty.channel.ChannelHandlerContext; import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.socket.nio.NioSocketChannel; import io.netty.channel.socket.nio.NioSocketChannel;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.RedisTemplate;
...@@ -179,11 +178,9 @@ public class StaffSingleChatServiceImpl implements ChatService { ...@@ -179,11 +178,9 @@ public class StaffSingleChatServiceImpl implements ChatService {
* *
* @param userId * @param userId
*/ */
@SneakyThrows
private void pushNotifications(Long userId) { private void pushNotifications(Long userId) {
final DeviceTokenParam deviceTokenParam = channelGroup.USER_DEVICE_PUSH_TOKEN.get(userId); final DeviceTokenParam deviceTokenParam = channelGroup.USER_DEVICE_PUSH_TOKEN.get(userId);
pushFactory.getService(deviceTokenParam.getDeviceType()).unicast(deviceTokenParam.getDeviceToken()); pushFactory.getService(deviceTokenParam.getDeviceType()).unicast(deviceTokenParam.getDeviceToken());
} }
......
...@@ -16,21 +16,22 @@ spring: ...@@ -16,21 +16,22 @@ spring:
max-wait: 60000 max-wait: 60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位毫秒 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位毫秒
time-between-eviction-runs-millis: 60000 time-between-eviction-runs-millis: 60000
url: jdbc:mysql://47.99.47.225/customer_service?useUnicode=true&useSSL=false&serverTimezone=Asia/Shanghai&characterEncoding=utf8 url: jdbc:mysql://127.0.0.1/customer_service?useUnicode=true&useSSL=false&serverTimezone=Asia/Shanghai&characterEncoding=utf8
username: root username: web
password: temple123456 password: wBT7bC9BeUkE
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
connectionInitSqls: set names utf8mb4 connectionInitSqls: set names utf8mb4
jackson: jackson:
default-property-inclusion: non_null default-property-inclusion: non_null
rabbitmq: rabbitmq:
host: 47.99.47.225 host: 127.0.0.1
port: 5672 port: 5672
username: root username: root
password: root password: TYWu154pBpvr
staff-offline-Queue-Name: staff.offline.dev staff-offline-Queue-Name: staff.offline
exchange-name: delay.exchange.dev order-queue-name: push.order
exchange-name: delay.exchange
listener: listener:
simple: simple:
default-requeue-rejected: false default-requeue-rejected: false
...@@ -38,7 +39,7 @@ spring: ...@@ -38,7 +39,7 @@ spring:
database: 0 database: 0
host: 127.0.0.1 host: 127.0.0.1
port: 6379 port: 6379
password: temple123456 password: LSlX0JKkD34U3oY3hwI5
# (重要!)设置mvc默认语言为zh_CN,默认语言必须为static.i18n目录下有的语言配置文件,否则跟随服务器语言 # (重要!)设置mvc默认语言为zh_CN,默认语言必须为static.i18n目录下有的语言配置文件,否则跟随服务器语言
mvc: mvc:
locale: zh_CN locale: zh_CN
...@@ -47,4 +48,4 @@ spring: ...@@ -47,4 +48,4 @@ spring:
log-condition-evaluation-delta: false log-condition-evaluation-delta: false
serviceUrl: serviceUrl:
user-info-url: http://47.99.47.225:8889/api/app/user/userInfo user-info-url: http:/127.0.0.1:8889/api/app/user/userInfo
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment