| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- # 项目相关配置
- poyee:
- # 名称
- name: product-calendar
- # 版本
- version: 1.0.1
- # 获取ip地址开关
- addressEnabled: false
- #版本
- app-version: dev
- #app-version: prod
- exchange:
- rate:
- usd-to-rmb: 7.0
- jpy-to-rmb: 0.05
- management:
- health:
- defaults.enabled: false
- db.enabled: true
- diskspace.enabled: true
- #Forest
- forest:
- #bean-id: config0 # 在spring上下文中bean的id(默认为 forestConfiguration)
- #backend: okhttp3 # 后端HTTP框架(默认为 okhttp3)
- #max-connections: 1000 # 连接池最大连接数(默认为 500)
- #max-route-connections: 500 # 每个路由的最大连接数(默认为 500)你这
- #timeout: 30000 # 请求超时时间,单位为毫秒(默认为 3000)
- #connect-timeout: 30000 # 连接超时时间,单位为毫秒(默认为 timeout)
- read-timeout: 10000 # 数据读取超时时间,单位为毫秒(默认为 timeout)
- #max-retry-count: 0 # 请求失败后重试次数(默认为 0 次不重试)
- #ssl-protocol: SSLv3 # 单向验证的HTTPS的默认SSL协议(默认为 SSLv3)
- #logEnabled: true # 打开或关闭日志(默认为 true)
- #log-request: true # 打开/关闭Forest请求日志(默认为 true)
- #log-response-status: true # 打开/关闭Forest响应状态日志(默认为 true)
- #log-response-content: true # 打开/关闭Forest响应内容日志(默认为 false)
- variables:
- appleUrl: https://appleid.apple.com/auth
- # 开发环境配置
- server:
- # 服务器的HTTP端口,默认为80
- port: 8088
- tomcat:
- # tomcat的URI编码
- uri-encoding: UTF-8
- # tomcat最大线程数,默认为200
- max-threads: ${SERVER_TOMCAT_MAX_THREADS:800}
- # Tomcat启动初始化的线程数,默认值25
- min-spare-threads: ${SERVER_TOMCAT_MIN_SPARE_THREADS:30}
- #超时时间
- connection-timeout: 600000
- #basedir: c://tmp/logs
- accesslog:
- enabled: false
- buffered: true
- prefix: access_log
- file-date-format: .yyyy-MM-dd
- # 日志配置
- logging:
- console.enabled: ${CONSOLE_ENABLED:true}
- file.enabled: ${FILE_ENABLED:false}
- level:
- com.poyee: debug
- org.springframework: warn
- fluentd:
- enabled: ${FLUENTD_ENABLED:false}
- host: ${FLUENTD_HOST:127.0.0.1}
- port: ${FLUENTD_PORT:24225}
- # Spring配置
- spring:
- jackson:
- time-zone: GMT+8
- date-format: yyyy-MM-dd HH:mm:ss
- #default-property-inclusion: non_null
- # 服务模块
- devtools:
- restart:
- # 热部署开关
- enabled: true
- #数据源配置
- datasource:
- url: jdbc:postgresql://m2-dev.hobbystocks.cn:5432/tzy_system
- username: postgres
- password: 123456
- type: com.alibaba.druid.pool.DruidDataSource
- driver-class-name: org.postgresql.Driver
- druid:
- # 初始连接数
- initialSize: 5
- # 最小连接池数量
- minIdle: 10
- # 最大连接池数量
- maxActive: 20
- # 配置获取连接等待超时的时间
- maxWait: 60000
- # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
- timeBetweenEvictionRunsMillis: 30000
- #验证连接超时时间(ms)
- validationQueryTimeout: 300
- # 配置一个连接在池中最小生存的时间,单位是毫秒
- minEvictableIdleTimeMillis: 300000
- # 配置一个连接在池中最大生存的时间,单位是毫秒
- maxEvictableIdleTimeMillis: 900000
- webStatFilter:
- enabled: false
- jpa:
- hibernate:
- ddl-auto: none
- naming:
- physical-strategy: org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
- #show-sql: true
- properties:
- hibernate:
- temp:
- use_jdbc_metadata_defaults: false
- redis:
- database: 1
- host: 127.0.0.1
- #host: hobbystock.cn
- port: 6379
- password: 123456 # 密码(默认为空)
- timeout: 60000 # 连接超时时长(毫秒)
- pool:
- max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
- max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
- max-idle: 10 # 连接池中的最大空闲连接
- min-idle: 5 # 连接池中的最小空闲连接
- # Swagger配置
- swagger:
- # 是否开启swagger
- enabled: true
- #服务前缀路径
- coreService:
- baseurl: ${CORESERV_BASEURL:https://coresvc-dev.hobbystocks.cn}
- smsUrl: /api/reminder/live/on
- appSmsUrl: /api/appmsg/live/on
- ipUrl: /api/geo/city
- #用户服务
- user:
- # 用户内网地址
- useServiceUrl: ${CORESERV_BASEURL:https://coresvc-dev.hobbystocks.cn}
- #用户详情
- userInfoUrl: /user
- #商家app用户信息
- merchantUrl: /user/merchant
- #消息推送服务地址
- pushBaseUrl: ${CORESERV_BASEURL:https://coresvc-dev.hobbystocks.cn}
- # MyBatis
- mybatis:
- mapper-locations: classpath:mapper/*.xml
|