123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- spring:
- application:
- name: szwl-server
- profiles:
- # 打包或运行时,换这里:sit测试,prod正式
- active: sit
- cloud:
- config:
- name: szwl-server
- discovery:
- service-id: config-server
- # 是否获取配置中心配置
- enabled: true
- # 项目端口
- server:
- port: 49011
- maxPostSize: -1
- maxHttpHeaderSize: 1024000
- management:
- endpoints:
- web:
- exposure:
- include: refresh
- oauth:
- wx:
- # 测试帐号
- # appid: wx6959f112e9ffbfa3
- # appsecret: 32f6fdf12bc25361110e1786f386eaab
- # 正式账户
- appid: wxcd5b1b2636c9f611
- appsecret: e2854aa99f8279f33b4f065b2ffb75b1
- callback:
- # 个人测试
- # http: http://d.freehk.svipss.top
- # 系统测试
- # http: http://szwltest.sunzee.com.cn
- # 正式服务
- http: https://szwlh.sunzee.com.cn
- mybatis-plus:
- mapper-locations: classpath:com/szwl/mapper/xml/*.xml
- swagger:
- url: /v2/api-docs,/swagger-resources,/swagger-resources/**,/configuration/ui,/configuration/security,/swagger-ui.html/**,/webjars/**,/doc.html,/doc.html/**,/*.html,/**.html,/**/*.html,/**/*.css,/**/*.js,/sys/api/list,/sys/user/batch,/sys/org/batch
- logging:
- file:
- name: /app/applogs/${spring.application.name}/${spring.application.name}.log
- path: /app/applogs/${spring.application.name}/${spring.application.name}.log
- max-size: 100MB
- level:
- com.szwl: debug
- ##上面是基础配置,不用上配置中心那种
- ##下面是环境区分,主要不同环境不同文件获取
- ---
- #测试环境
- spring:
- profiles: sit
- #数据库配置
- datasource:
- url: jdbc:mysql://rm-wz995mu26a1479kz0so.mysql.rds.aliyuncs.com:3306/szwl-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
- # 本地测试的时候改成 false
- # register-with-eureka: false
- # instance:
- # prefer-ip-address: true
- # ip-address: 112.96.106.247
- ---
- ##正式环境
- spring:
- profiles: prod
- #数据库配置
- datasource:
- url: jdbc:mysql://rm-wz995mu26a1479kz0.mysql.rds.aliyuncs.com:3306/szwl
- username: root
- password: sunzee@020
- driver-class-name: com.mysql.jdbc.Driver
- #注册中心
- eureka:
- client:
- serviceUrl:
- defaultZone: http://10.0.0.152:49001/eureka/,http://10.0.0.153:49001/eureka/
- register-with-eureka: true
- instance:
- prefer-ip-address: true
|