|
@@ -1,33 +1,25 @@
|
|
|
-##服务配置
|
|
|
-server:
|
|
|
- port: 8002 #监听端口
|
|
|
-
|
|
|
##自定义配置
|
|
|
-mta:
|
|
|
- debug: true #是否测试
|
|
|
+mta.debug: true #是否测试
|
|
|
+
|
|
|
+##服务配置
|
|
|
+server.port: 8002 #监听端口
|
|
|
|
|
|
##短信配置
|
|
|
sms:
|
|
|
accessKeyId: LTAIORWo0hisaiYV
|
|
|
accessKeySecret: LAM1Lf0hQJ7UCmm2HvBCxfOKFzs8d0
|
|
|
-
|
|
|
-##spring配置
|
|
|
-spring:
|
|
|
- ##应用配置 #服务名称
|
|
|
- application.name: mta-service-sms
|
|
|
- ##监控服务配置
|
|
|
- boot.admin.client:
|
|
|
- instance.preferIp: true #使用IP注册
|
|
|
- url: http://192.168.0.179:1111 #监控服务地址
|
|
|
|
|
|
- ##redis配置
|
|
|
- redis:
|
|
|
- host: 192.168.0.172
|
|
|
- port: 6379
|
|
|
- database: 2
|
|
|
- password:
|
|
|
- timeout: 1000
|
|
|
-
|
|
|
+##REDIS配置
|
|
|
+spring.redis:
|
|
|
+ host: 192.168.0.172
|
|
|
+ port: 6379
|
|
|
+ database: 2
|
|
|
+ password:
|
|
|
+ timeout: 1000
|
|
|
+
|
|
|
+##应用配置
|
|
|
+spring.application.name: mta-service-sms #服务名称
|
|
|
+
|
|
|
##注册中心配置
|
|
|
eureka:
|
|
|
instance:
|
|
@@ -38,12 +30,18 @@ eureka:
|
|
|
healthcheck.enabled: true #开启健康检测
|
|
|
serviceUrl.defaultZone: http://192.168.0.179:8761/eureka #配置中心地址
|
|
|
|
|
|
-##监控配置
|
|
|
+##监控服务配置
|
|
|
+spring.boot.admin.client:
|
|
|
+ instance.preferIp: true #使用IP注册
|
|
|
+ url: http://192.168.0.179:1111 #监控服务地址
|
|
|
+
|
|
|
+##监控端点配置
|
|
|
management:
|
|
|
server.port: 18002 #监控端口
|
|
|
endpoints.web.exposure.include: "*" #开启所有端点
|
|
|
endpoint.health.show-details: always #显示健康详情
|
|
|
|
|
|
+
|
|
|
##日志配置
|
|
|
logging:
|
|
|
level:
|