bootstrap.yml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. spring:
  2. application:
  3. name: szwl-server
  4. profiles:
  5. # 打包或运行时,换这里:sit测试,prod正式
  6. active: sit
  7. cloud:
  8. config:
  9. name: szwl-server
  10. discovery:
  11. service-id: config-server
  12. # 是否获取配置中心配置
  13. enabled: true
  14. # 项目端口
  15. server:
  16. port: 49011
  17. maxPostSize: -1
  18. maxHttpHeaderSize: 1024000
  19. management:
  20. endpoints:
  21. web:
  22. exposure:
  23. include: refresh
  24. oauth:
  25. wx:
  26. # 测试帐号
  27. # appid: wx6959f112e9ffbfa3
  28. # appsecret: 32f6fdf12bc25361110e1786f386eaab
  29. # 正式账户
  30. appid: wxcd5b1b2636c9f611
  31. appsecret: e2854aa99f8279f33b4f065b2ffb75b1
  32. callback:
  33. # 个人测试
  34. # http: http://d.freehk.svipss.top
  35. # 系统测试
  36. # http: http://szwltest.sunzee.com.cn
  37. # 正式服务
  38. http: https://szwlh.sunzee.com.cn
  39. mybatis-plus:
  40. mapper-locations: classpath:com/szwl/mapper/xml/*.xml
  41. swagger:
  42. 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
  43. logging:
  44. file:
  45. name: /app/applogs/${spring.application.name}/${spring.application.name}.log
  46. path: /app/applogs/${spring.application.name}/${spring.application.name}.log
  47. max-size: 100MB
  48. level:
  49. com.szwl: debug
  50. ##上面是基础配置,不用上配置中心那种
  51. ##下面是环境区分,主要不同环境不同文件获取
  52. ---
  53. #测试环境
  54. spring:
  55. profiles: sit
  56. #数据库配置
  57. datasource:
  58. url: jdbc:mysql://rm-wz995mu26a1479kz0so.mysql.rds.aliyuncs.com:3306/szwl-test
  59. username: root
  60. password: sunzee@020
  61. driver-class-name: com.mysql.jdbc.Driver
  62. #注册中心
  63. eureka:
  64. client:
  65. serviceUrl:
  66. defaultZone: http://120.25.151.99:49001/eureka/
  67. register-with-eureka: true
  68. # 本地测试的时候改成 false
  69. # register-with-eureka: false
  70. # instance:
  71. # prefer-ip-address: true
  72. # ip-address: 112.96.106.247
  73. ---
  74. ##正式环境
  75. spring:
  76. profiles: prod
  77. #数据库配置
  78. datasource:
  79. url: jdbc:mysql://rm-wz995mu26a1479kz0.mysql.rds.aliyuncs.com:3306/szwl
  80. username: root
  81. password: sunzee@020
  82. driver-class-name: com.mysql.jdbc.Driver
  83. #注册中心
  84. eureka:
  85. client:
  86. serviceUrl:
  87. defaultZone: http://10.0.0.152:49001/eureka/,http://10.0.0.153:49001/eureka/
  88. register-with-eureka: true
  89. instance:
  90. prefer-ip-address: true