mirror of https://gitee.com/maxjhandsome/pig
biubiubiu
This commit is contained in:
parent
1c5b53306f
commit
5e3d88079c
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue