bootstrap.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. ################# 服务器配置 #################
  2. server:
  3. port: 11503
  4. undertow:
  5. accesslog:
  6. enabled: true
  7. pattern: "%t %a "%r" %s (%D ms)"
  8. dir: /data/logs/undertow/${spring.application.name}/access-logs/
  9. servlet:
  10. context-path: /publics
  11. ################# spring公共配置 #################
  12. spring:
  13. mvc:
  14. path-match:
  15. matching-strategy: ant_path_matcher
  16. format:
  17. date: yyyy-MM-dd HH:mm:ss
  18. jackson:
  19. time-zone: GMT+8
  20. date-format: yyyy-MM-dd HH:mm:ss
  21. profiles:
  22. active: dev
  23. application:
  24. name: jzo2o-publics
  25. main:
  26. # 支持循环依赖注入
  27. allow-circular-references: true
  28. # bean名相同覆盖
  29. allow-bean-definition-overriding: true
  30. cloud:
  31. nacos:
  32. username: ${NACOS_USERNAME}
  33. password: ${NACOS_PASSWORD}
  34. server-addr: ${NACOS_ADDR}
  35. discovery:
  36. namespace: ${NACOS_NAMESPACE}
  37. config:
  38. namespace: ${NACOS_NAMESPACE}
  39. file-extension: yaml
  40. shared-configs: # 共享配置
  41. - data-id: shared-redis-cluster.yaml # 共享redis集群配置
  42. refresh: false
  43. ################# 项目独有配置 #################
  44. swagger:
  45. enable: true
  46. package-path: com.jzo2o.publics.controller
  47. title: 家政服务-通用服务接口文档
  48. description: 用于通用服务进行管理
  49. contact-name: 传智教育·研究院
  50. contact-url: http://www.itcast.cn/
  51. contact-email: yjy@itcast.cn
  52. version: v1.0
  53. ################# 日志配置 #################
  54. logging:
  55. level:
  56. com.jzo2o: debug
  57. org.apache.http: info #es请求日志
  58. feign:
  59. enable: true