biubiubiu

This commit is contained in:
李寻欢 2017-12-07 10:31:57 +08:00
parent 1c5b53306f
commit 5e3d88079c
7 changed files with 26 additions and 14 deletions

View File

@ -3,7 +3,7 @@ eureka:
prefer-ip-address: true
client:
serviceUrl:
defaultZone: http://127.0.0.1:9000/eureka/
defaultZone: http://zqxq:mgzqxq1866@localhost:1001/eureka
spring:
application:

View File

@ -3,7 +3,7 @@ eureka:
prefer-ip-address: true
client:
serviceUrl:
defaultZone: http://127.0.0.1:9000/eureka/
defaultZone: http://zqxq:mgzqxq1866@localhost:1001/eureka
spring:
application:

View File

@ -1,5 +1,5 @@
server:
port: 2000
port: 4001
spring:
application:
@ -8,20 +8,21 @@ spring:
config:
server:
git:
uri: https://github.com/jieblog/pig-config.git
uri: https://www.gitee.wang/a/pig-config.git
bus:
trace:
enabled: true
rabbitmq:
port: 5672
host: localhost
username: guest
password: guest
# rabbitmq:
# host: 192.168.1.122
# port: 5682
# username: guest
# password: guest
# virtual-host: /
eureka:
instance:
prefer-ip-address: true
client:
serviceUrl:
defaultZone: http://127.0.0.1:9000/eureka/
defaultZone: http://zqxq:mgzqxq1866@localhost:1001/eureka

View File

@ -1,10 +1,17 @@
server:
port: 9000
port: 1001
spring:
application:
name: pig-eureka-server
security:
basic:
enabled: true # 启用身份认证
user:
name: zqxq # 定义用户名
password: mgzqxq1866 # 定义密码
eureka:
client:
fetch-registry: false

View File

@ -48,6 +48,10 @@ public class LogSendServiceImpl implements LogSendService {
if (StringUtils.isNotEmpty(request.getHeader(CommonConstant.REQ_HEADER))) {
logVo.setToken(request.getHeader(CommonConstant.REQ_HEADER));
}
rabbitTemplate.convertAndSend(CommonConstant.LOG_QUEUE, logVo);
try {
rabbitTemplate.convertAndSend(CommonConstant.LOG_QUEUE, logVo);
}catch (Exception e) {
logger.error("MQ发送日志异常异常信息"+e.getMessage());
}
}
}

View File

@ -3,7 +3,7 @@ eureka:
prefer-ip-address: true
client:
serviceUrl:
defaultZone: http://127.0.0.1:9000/eureka/
defaultZone: http://zqxq:mgzqxq1866@localhost:1001/eureka
spring:
application:

View File

@ -12,7 +12,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.7.RELEASE</version>
<version>1.5.9.RELEASE</version>
<relativePath/>
</parent>