|
@@ -0,0 +1,87 @@
|
|
|
+server:
|
|
|
+ tomcat:
|
|
|
+ accesslog:
|
|
|
+ buffered: false
|
|
|
+ enabled: true
|
|
|
+ pattern: '{"DateTime":"%{yyyy-MM-dd''T''HH:mm:ss.SSSZZ}t","ClientIP":"%a","Method":"%m","URI":"%U","RequestProtocol":"%H","ResponseCode":%s,
|
|
|
+ "ResponseTime":%D,"UserAgent":"%{user-agent}i","X-Forwarded-For":"%{x-forwarded-for}r","X-User-IP":"%{X-User-IP}i","traceId":"%{x-b3-traceid}i","id":"%{x-b3-spanid}r",
|
|
|
+ "parentId":"%{x-b3-parentspanid}i","ApplicationName":"${spring.application.name}","MG-IsCharge":%{isCharge}r,
|
|
|
+ "MG-ChannelId":%{channelId}i,"MG-CustomBody":"%{x-requestQuery}r","MG-ResultBody":"%{resultBody}o",
|
|
|
+ "MG-ResponseCode":%{respnoseCode}r,"MG-Upstream-ResponseCode":"%{upResponseCode}r","MG-SellingPrice":%{price}i,"req_type":"%{req_type}r","MG-ProductId":%{productId}i,"MG-UserId":%{userid}i}'
|
|
|
+ prefix: access_${HOSTNAME}_${spring.application.name}_${server.port}
|
|
|
+ directory: ${logging.path}
|
|
|
+ servlet:
|
|
|
+ context-path: /
|
|
|
+
|
|
|
+spring:
|
|
|
+ sleuth:
|
|
|
+ sampler:
|
|
|
+ probability: 1
|
|
|
+ web:
|
|
|
+ additional-skip-pattern: /api/v2/spans
|
|
|
+ zipkin:
|
|
|
+ base-url: http://127.0.0.1:${server.port}
|
|
|
+
|
|
|
+ mvc:
|
|
|
+ favicon:
|
|
|
+ enabled: false
|
|
|
+
|
|
|
+#management
|
|
|
+management:
|
|
|
+ endpoints:
|
|
|
+ enabled-by-default: true
|
|
|
+ web:
|
|
|
+ exposure:
|
|
|
+ include: '*'
|
|
|
+ endpoint:
|
|
|
+ health:
|
|
|
+ show-details: always
|
|
|
+ shutdown:
|
|
|
+ enabled: true
|
|
|
+
|
|
|
+#logging
|
|
|
+logging:
|
|
|
+ path: /Users/jkxy/root-logs/apps/var/jakarta/logs
|
|
|
+ level:
|
|
|
+ root: INFO
|
|
|
+ red:
|
|
|
+ microcloud: DEBUG
|
|
|
+ config: classpath:config/logback-spring.xml
|
|
|
+ file: ${logging.path}/catalina_${spring.cloud.client.hostname}_${spring.application.name}_${server.port}.out
|
|
|
+
|
|
|
+#error logging
|
|
|
+#sleuth logging
|
|
|
+rdc:
|
|
|
+ logging:
|
|
|
+ error-file: ${logging.path}/error_${spring.cloud.client.hostname}_${spring.application.name}_${server.port}.log
|
|
|
+ sleuth-file: ${logging.path}/sleuth_${spring.cloud.client.hostname}_${spring.application.name}_${server.port}.log
|
|
|
+
|
|
|
+#eureka
|
|
|
+eureka:
|
|
|
+ instance:
|
|
|
+ prefer-ip-address: true
|
|
|
+ instance-id: ${spring.cloud.client.ipaddress}:${server.port}
|
|
|
+ metadata-map:
|
|
|
+ management:
|
|
|
+ port: ${management.server.port}
|
|
|
+ health-check-url: http://${spring.cloud.client.ipaddress}:${management.server.port}${eureka.instance.health-check-url-path}
|
|
|
+ health-check-url-path: /actuator/health
|
|
|
+ client:
|
|
|
+ serviceUrl:
|
|
|
+ defaultZone: http://localhost:8888/eureka
|
|
|
+
|
|
|
+#custom
|
|
|
+supplier:
|
|
|
+ appKey: 3AA555152F3299F6A37C66C074DEF14D
|
|
|
+ appSecret: A84A975F4C324E20659CB340735DA894
|
|
|
+ historyPositionUrl: https://gateway.logink.cn/gps/getHistoryPosition
|
|
|
+ partyFunctionCode: logink
|
|
|
+ addHours: 4
|
|
|
+ reduceHours: -4
|
|
|
+ baiduUrl: http://api.map.baidu.com/reverse_geocoding/v3/
|
|
|
+ baiduAk: 2cgadO5KodmKx0KBPKO0Ym3BgT0xFDPG
|
|
|
+ vehicleRoadTransportUrl: http://219.143.235.120:9090/roadTransportation/vehicleInfo/api/yy
|
|
|
+ personQualificationUrl: http://219.143.235.120:9090/roadTransportation/staffInfo/api/yy
|
|
|
+ enterpriseRoadTransportUrl: http://219.143.235.120:9090/roadTransportation/ownerInfo/api/yy
|
|
|
+swagger:
|
|
|
+ show: true
|