123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- ################# 服务器配置 #################
- server:
- port: 11503
- undertow:
- accesslog:
- enabled: true
- pattern: "%t %a "%r" %s (%D ms)"
- dir: /data/logs/undertow/${spring.application.name}/access-logs/
- servlet:
- context-path: /publics
- ################# spring公共配置 #################
- spring:
- mvc:
- path-match:
- matching-strategy: ant_path_matcher
- format:
- date: yyyy-MM-dd HH:mm:ss
- jackson:
- time-zone: GMT+8
- date-format: yyyy-MM-dd HH:mm:ss
- profiles:
- active: dev
- application:
- name: jzo2o-publics
- main:
- # 支持循环依赖注入
- allow-circular-references: true
- # bean名相同覆盖
- allow-bean-definition-overriding: true
- cloud:
- nacos:
- username: ${NACOS_USERNAME}
- password: ${NACOS_PASSWORD}
- server-addr: ${NACOS_ADDR}
- discovery:
- namespace: ${NACOS_NAMESPACE}
- config:
- namespace: ${NACOS_NAMESPACE}
- file-extension: yaml
- shared-configs: # 共享配置
- - data-id: shared-redis-cluster.yaml # 共享redis集群配置
- refresh: false
- ################# 项目独有配置 #################
- swagger:
- enable: true
- package-path: com.jzo2o.publics.controller
- title: 家政服务-通用服务接口文档
- description: 用于通用服务进行管理
- contact-name: 传智教育·研究院
- contact-url: http://www.itcast.cn/
- contact-email: yjy@itcast.cn
- version: v1.0
- ################# 日志配置 #################
- logging:
- level:
- com.jzo2o: debug
- org.apache.http: info #es请求日志
- feign:
- enable: true
|