Commit d7ce67d5 by lpx

Merge branch 'master' of http://119.28.51.83/hewei/Jumeirah into dev/lanpingxiong

parents 5a332aa4 ee9c645a
...@@ -130,19 +130,23 @@ ...@@ -130,19 +130,23 @@
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<configuration> <configuration>
<source>${java.version}</source> <skipTests>true</skipTests>
<target>${java.version}</target>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins> </plugins>
</build> </build>
</project> </project>
\ No newline at end of file
...@@ -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 {
......
...@@ -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
...@@ -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
...@@ -16,33 +16,36 @@ spring: ...@@ -16,33 +16,36 @@ 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: temple123456
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: 127.0.0.1 host: 47.99.47.225
port: 5672 port: 5672
username: admin username: root
password: admin password: root
delay-queue-name: delay.ack.dev delay-queue-name: delay.ack-Jw
staff-offline-Queue-Name: staff.offline.dev staff-offline-Queue-Name: staff.offline-Jw
exchange-name: delay.exchange.dev exchange-name: delay.exchange
listener: listener:
simple: simple:
default-requeue-rejected: false default-requeue-rejected: false
redis: redis:
database: 5 database: 5
host: 127.0.0.1 host: 127.0.0.1
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
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