123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- spring:
- application:
- name: pay-server
- profiles:
- # 打包或运行时,换这里:sit测试,prod正式
- active: sit
- cloud:
- config:
- name: pay-server
- discovery:
- service-id: config-server
- # 是否获取配置中心配置
- enabled: true
- # 项目端口
- server:
- port: 49013
- management:
- endpoints:
- web:
- exposure:
- include: refresh
- mybatis-plus:
- mapper-locations: classpath:com/szwl/mapper/xml/*.xml
- logging:
- level:
- com.szwl: debug
- ##上面是基础配置,不用上配置中心那种
- ##下面是环境区分,主要不同环境不同文件获取
- ---
- #测试环境
- spring:
- profiles: sit
- #数据库配置
- datasource:
- url: jdbc:mysql://rm-wz995mu26a1479kz0so.mysql.rds.aliyuncs.com:3306/orderdb-test
- username: root
- password: sunzee@020
- driver-class-name: com.mysql.jdbc.Driver
- #注册中心
- eureka:
- client:
- serviceUrl:
- defaultZone: http://120.25.151.99:49001/eureka/
- register-with-eureka: true
- instance:
- prefer-ip-address: true
- ip-address: 120.25.151.99
- ---
- ##正式环境
- spring:
- profiles: prod
- #数据库配置
- datasource:
- url: jdbc:mysql://rm-wz995mu26a1479kz0so.mysql.rds.aliyuncs.com:3306/orderdb
- username: root
- password: sunzee@020
- driver-class-name: com.mysql.jdbc.Driver
- #注册中心
- eureka:
- client:
- serviceUrl:
- defaultZone: http://112.74.63.148:49001/eureka/
- register-with-eureka: true
- instance:
- prefer-ip-address: true
|