Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SiEn
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hewei
SiEn
Commits
efce4aed
Commit
efce4aed
authored
Oct 29, 2020
by
zhangjw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1:完善配置文件
parent
5b9bf6aa
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
13 deletions
+18
-13
customer-service/src/main/java/com/ym/im/service/impl/UserSingleChatServiceImpl.java
+3
-1
customer-service/src/main/resources/application-dev.yml
+4
-0
customer-service/src/main/resources/application-prd.yml
+3
-8
customer-service/src/main/resources/application-test.yml
+8
-4
No files found.
customer-service/src/main/java/com/ym/im/service/impl/UserSingleChatServiceImpl.java
View file @
efce4aed
...
@@ -19,6 +19,7 @@ import io.netty.channel.ChannelHandlerContext;
...
@@ -19,6 +19,7 @@ import io.netty.channel.ChannelHandlerContext;
import
io.netty.channel.socket.nio.NioSocketChannel
;
import
io.netty.channel.socket.nio.NioSocketChannel
;
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.beans.factory.annotation.Value
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
...
@@ -58,7 +59,8 @@ public class UserSingleChatServiceImpl implements ChatService {
...
@@ -58,7 +59,8 @@ public class UserSingleChatServiceImpl implements ChatService {
@Autowired
@Autowired
private
SessionListService
sessiontListService
;
private
SessionListService
sessiontListService
;
private
static
final
String
USER_INFO_URL
=
"http://192.168.1.237:8889/api/app/user/userInfo"
;
@Value
(
"${serviceUrl.user-info-url}"
)
private
String
USER_INFO_URL
;
@Override
@Override
public
void
init
(
ChannelHandlerContext
ctx
)
throws
IOException
{
public
void
init
(
ChannelHandlerContext
ctx
)
throws
IOException
{
...
...
customer-service/src/main/resources/application-dev.yml
View file @
efce4aed
...
@@ -45,3 +45,6 @@ spring:
...
@@ -45,3 +45,6 @@ spring:
devtools
:
devtools
:
restart
:
restart
:
log-condition-evaluation-delta
:
false
log-condition-evaluation-delta
:
false
serviceUrl
:
user-info-url
:
http://127.0.0.1:8889/api/app/user/userInfo
\ No newline at end of file
customer-service/src/main/resources/application-prd.yml
View file @
efce4aed
...
@@ -36,7 +36,7 @@ spring:
...
@@ -36,7 +36,7 @@ spring:
simple
:
simple
:
default-requeue-rejected
:
false
default-requeue-rejected
:
false
redis
:
redis
:
database
:
5
database
:
0
host
:
172.31.33.14
host
:
172.31.33.14
password
:
Yum123456
password
:
Yum123456
port
:
6379
port
:
6379
...
@@ -51,9 +51,5 @@ logging:
...
@@ -51,9 +51,5 @@ logging:
file
:
logs/${spring.application.name}.log
file
:
logs/${spring.application.name}.log
eureka
:
serviceUrl
:
client
:
user-info-url
:
http://192.168.1.237:8889/api/app/user/userInfo
service-url
:
defaultZone
:
http://172.31.41.108:20000/eureka/
instance
:
prefer-ip-address
:
true
\ No newline at end of file
customer-service/src/main/resources/application-test.yml
View file @
efce4aed
...
@@ -16,9 +16,9 @@ spring:
...
@@ -16,9 +16,9 @@ spring:
max-wait
:
60000
max-wait
:
60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位毫秒
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位毫秒
time-between-eviction-runs-millis
:
60000
time-between-eviction-runs-millis
:
60000
url
:
jdbc:mysql://
192.168.1.237:3306/pathfinder_im
?useUnicode=true&useSSL=false&serverTimezone=Asia/Shanghai&characterEncoding=utf8
url
:
jdbc:mysql://
47.99.47.225/customer_service
?useUnicode=true&useSSL=false&serverTimezone=Asia/Shanghai&characterEncoding=utf8
username
:
root
username
:
root
password
:
123456
password
:
temple
123456
driver-class-name
:
com.mysql.cj.jdbc.Driver
driver-class-name
:
com.mysql.cj.jdbc.Driver
connectionInitSqls
:
set names utf8mb4
connectionInitSqls
:
set names utf8mb4
...
@@ -37,12 +37,15 @@ spring:
...
@@ -37,12 +37,15 @@ spring:
default-requeue-rejected
:
false
default-requeue-rejected
:
false
redis
:
redis
:
database
:
5
database
:
5
host
:
127.0.0.1
host
:
47.99.47.225
password
:
port
:
6379
port
:
6379
password
:
temple123456
# (重要!)设置mvc默认语言为zh_CN,默认语言必须为static.i18n目录下有的语言配置文件,否则跟随服务器语言
# (重要!)设置mvc默认语言为zh_CN,默认语言必须为static.i18n目录下有的语言配置文件,否则跟随服务器语言
mvc
:
mvc
:
locale
:
zh_CN
locale
:
zh_CN
devtools
:
devtools
:
restart
:
restart
:
log-condition-evaluation-delta
:
false
log-condition-evaluation-delta
:
false
serviceUrl
:
user-info-url
:
http://47.99.47.225:8889/api/app/user/userInfo
\ No newline at end of file
Write
Preview
Markdown
is supported
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