easy-trans.yml 684 B

123456789101112
  1. # easy-trans 配置
  2. easy-trans:
  3. # 字典缓存是否放到redis中 做二级缓存,微服务模式推荐开启
  4. dict-use-redis: false
  5. # 开启redis支持 微服务模式推荐使用redis
  6. is-enable-redis: false
  7. # 启用全局翻译(拦截所有responseBody进行自动翻译),如果关闭需要手动调用翻译方法或者方法加注解,具体看文档
  8. is-enable-global: true
  9. # 启平铺模式(transMap的key平铺到和vo一个级别)
  10. is-enable-tile: true
  11. # 默认为true 如果前期先单体跑,后期可能改为springcloud微服务,可以先设置为false,后期设置为true,设置为false RPC翻译会走SIMPLE的逻辑
  12. is-enable-cloud: false