作者 wangbin

配置提交

  1 +# 加解密根密码
  2 +jasypt:
  3 + encryptor:
  4 + password: trobs #根密码
  5 +# redis 相关
  6 +spring:
  7 + redis:
  8 + host: 10.1.1.182
  9 + port: 6379
  10 + password:
  11 + database: 13
  12 +
  13 +# 暴露监控端点
  14 +management:
  15 + endpoints:
  16 + web:
  17 + exposure:
  18 + include: '*'
  19 +
  20 +# feign 配置
  21 +feign:
  22 + hystrix:
  23 + enabled: true
  24 + okhttp:
  25 + enabled: true
  26 + httpclient:
  27 + enabled: false
  28 + client:
  29 + config:
  30 + feignName:
  31 + connectTimeout: 10000
  32 + readTimeout: 10000
  33 + compression:
  34 + request:
  35 + enabled: true
  36 + response:
  37 + enabled: true
  38 +# hystrix If you need to use ThreadLocal bound variables in your RequestInterceptor`s
  39 +# you will need to either set the thread isolation strategy for Hystrix to `SEMAPHORE or disable Hystrix in Feign.
  40 +hystrix:
  41 + command:
  42 + default:
  43 + execution:
  44 + isolation:
  45 + strategy: SEMAPHORE
  46 + thread:
  47 + timeoutInMilliseconds: 60000
  48 + shareSecurityContext: true
  49 +
  50 +#请求处理的超时时间
  51 +ribbon:
  52 + ReadTimeout: 10000
  53 + ConnectTimeout: 10000
  54 +
  55 +# mybaits-plus配置
  56 +mybatis-plus:
  57 + # MyBatis Mapper所对应的XML文件位置
  58 + mapper-locations: classpath:/mapper/*Mapper.xml
  59 + global-config:
  60 + # 自动刷新Mapper对应的XML文件
  61 + refresh: true
  62 + # 关闭MP3.0自带的banner
  63 + banner: false
  64 + db-config:
  65 + # 主键类型 0:数据库ID自增 1.未定义 2.用户输入 3 id_worker 4.uuid 5.id_worker字符串表示
  66 + id-type: 0
  67 + #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
  68 + field-strategy: 1
  69 + # 默认数据库表下划线命名
  70 + table-underline: true
  71 + # 逻辑删除配置
  72 + # 逻辑删除全局值(1表示已删除,这也是Mybatis Plus的默认配置)
  73 + logic-delete-value: 1
  74 + # 逻辑未删除全局值(0表示未删除,这也是Mybatis Plus的默认配置)
  75 + logic-not-delete-value: 0
  76 + configuration:
  77 + map-underscore-to-camel-case: true
  78 +
  79 +#swagger公共信息
  80 +swagger:
  81 + title: Trobs Swagger API
  82 + description: 益源ERP开放API说明文档
  83 + version: 2.9.2
  84 + license: Powered By Trobs
  85 + licenseUrl: http://www.trobs.com/
  86 + terms-of-service-url: http://www.trobs.com/
  87 + host: 192.168.29.13
  88 + contact:
  89 + name: Aukey IT
  90 + email: tslcarmack@gmail.com
  91 + url: http://www.trobs.com/
  92 + authorization:
  93 + name: Trobs OAuth
  94 + auth-regex: ^.*$
  95 + authorization-scope-list:
  96 + - scope: server
  97 + description: server all
  98 + token-url-list:
  99 + - http://192.168.29.13/auth/oauth/token
  100 +
  101 +## spring security 配置
  102 +security:
  103 + oauth2:
  104 + client:
  105 + # 默认放行url,如果子模块重写这里的配置就会被覆盖
  106 + ignore-urls:
  107 + - '/actuator/**'
  108 + - '/v2/api-docs'
  109 + resource:
  110 + loadBalanced: true
  111 + token-info-uri: http://192.168.29.13/oauth/check_token
  1 +## spring security 配置
  2 +security:
  3 + oauth2:
  4 + client:
  5 + client-id: ENC(gPFcUOmJm8WqM3k3eSqS0Q==)
  6 + client-secret: ENC(gPFcUOmJm8WqM3k3eSqS0Q==)
  7 + scope: server
  8 + ignore-urls:
  9 + - '/actuator/**'
  10 + - '/v2/api-docs'
  11 + - '/service/**'
  12 + - '/editor-app/**'
  13 + - '/task/view/*'
  14 + - '/process/resource/**'
  15 + - '/modeler.html'
  16 +spring:
  17 + autoconfigure:
  18 + exclude: org.activiti.spring.boot.SecurityAutoConfiguration
  19 + activiti:
  20 + check-process-definitions: false
  21 + datasource:
  22 + type: com.zaxxer.hikari.HikariDataSource
  23 + driver-class-name: com.mysql.cj.jdbc.Driver
  24 + username: link-root
  25 + password: 123456
  26 + url: jdbc:mysql://192.168.29.104:3306/trobs_ac?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true
  1 +# 数据源
  2 +spring:
  3 + datasource:
  4 + type: com.zaxxer.hikari.HikariDataSource
  5 + driver-class-name: com.mysql.cj.jdbc.Driver
  6 + username: link-root
  7 + password: 123456
  8 + url: jdbc:mysql://192.168.29.104:3306/trobs?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8
  9 + freemarker:
  10 + allow-request-override: false
  11 + allow-session-override: false
  12 + cache: true
  13 + charset: UTF-8
  14 + check-template-location: true
  15 + content-type: text/html
  16 + enabled: true
  17 + expose-request-attributes: false
  18 + expose-session-attributes: false
  19 + expose-spring-macro-helpers: true
  20 + prefer-file-system-access: true
  21 + suffix: .ftl
  22 + template-loader-path: classpath:/templates/
  1 +## spring security 配置
  2 +security:
  3 + oauth2:
  4 + client:
  5 + client-id: ENC(NlpJuAsYk0XcxpCEGP0TXZOfcqSyasSRspEFLWimxbY=)
  6 + client-secret: ENC(NlpJuAsYk0XcxpCEGP0TXZOfcqSyasSRspEFLWimxbY=)
  7 + scope: server
  8 +# 数据源配置
  9 +spring:
  10 + datasource:
  11 + type: com.zaxxer.hikari.HikariDataSource
  12 + driver-class-name: com.mysql.cj.jdbc.Driver
  13 + username: link-root
  14 + password: 123456
  15 + url: jdbc:mysql://192.168.29.104:3306/trobs?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8
  16 + resources:
  17 + static-locations: classpath:/static/,classpath:/views/
  1 +## spring security 配置
  2 +security:
  3 + oauth2:
  4 + client:
  5 + client-id: ENC(NlpJuAsYk0XcxpCEGP0TXZOfcqSyasSRspEFLWimxbY=)
  6 + client-secret: ENC(NlpJuAsYk0XcxpCEGP0TXZOfcqSyasSRspEFLWimxbY=)
  7 + scope: server
  8 +# 数据源配置
  9 +spring:
  10 + datasource:
  11 + type: com.zaxxer.hikari.HikariDataSource
  12 + driver-class-name: com.mysql.cj.jdbc.Driver
  13 + username: link-root
  14 + password: 123456
  15 + url: jdbc:mysql://192.168.29.104:3306/trobs?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8
  16 + resources:
  17 + static-locations: classpath:/static/,classpath:/views/
  1 +## spring security 配置
  2 +security:
  3 + oauth2:
  4 + client:
  5 + client-id: ENC(9VO7qHAzPkVkSEYMDLVJxA==)
  6 + client-secret: ENC(9VO7qHAzPkVkSEYMDLVJxA==)
  7 + scope: server
  8 +# 数据源配置
  9 +spring:
  10 + datasource:
  11 + type: com.zaxxer.hikari.HikariDataSource
  12 + driver-class-name: com.mysql.cj.jdbc.Driver
  13 + username: link-root
  14 + password: 123456
  15 + url: jdbc:mysql://192.168.29.104:3306/trobs?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8
  16 + resources:
  17 + static-locations: classpath:/static/,classpath:/views/
  1 +spring:
  2 + cloud:
  3 + gateway:
  4 + locator:
  5 + enabled: true
  6 +
  7 +security:
  8 + encode:
  9 + # 前端密码密钥,必须16位
  10 + key: 'tsourceofbenefit'
  11 +
  12 +# 不校验验证码终端
  13 +ignore:
  14 + clients:
  15 + - trobs
  16 + - test
  17 + swagger-providers:
  18 + - trobs-auth
  19 + - trobs-tx-manager
  1 +spring:
  2 + # 安全配置
  3 + security:
  4 + user:
  5 + name: ENC(rZHA4LW5hHmhLAAzJoFNag==) # trobs
  6 + password: ENC(bjeyh+Aeii3kHXkoo00ZUw==) # trobs
  7 + boot:
  8 + admin:
  9 + ui:
  10 + resource-locations: 'classpath:/ui/,classpath:/static/'
  11 + template-location: 'classpath:/ui/'
  12 + title: 'trobs 服务状态监控'
  13 + brand: 'trobs 服务状态监控'
  1 +# 页面配置
  2 +spring:
  3 + mvc:
  4 + static-path-pattern: /**
  5 + resources:
  6 + static-locations: classpath:/static/
  7 +
  8 +
  9 +# LCN 配置
  10 +tm:
  11 + transaction:
  12 + netty:
  13 + delaytime: 5 # 客户端链接最大通讯时间 (秒)
  14 + hearttime: 15 # 客户端心跳时间 (秒)
  15 + redis:
  16 + savemaxtime: 30 # redis 保存时间 (秒)
  17 + socket:
  18 + port: 9998 # 通讯端口
  19 + maxconnection: 1000 #最大链接数
  20 + compensate:
  21 + auto: false #是否自动补偿
  22 + notifyUrl: http://ip:port/path #补偿结果通知(配消息总线里面)
  23 + tryTime: 30 # z再次重试时间间隔
  24 + maxWaitTime: 5000 # 请求超时的最大时间 (毫秒)
  1 +## spring security 配置
  2 +security:
  3 + oauth2:
  4 + client:
  5 + client-id: ENC(c5ebVTRN5xEzRooPfOtZ0w==)
  6 + client-secret: ENC(c5ebVTRN5xEzRooPfOtZ0w==)
  7 + scope: server
  8 + # 默认放行url,子模块重写时application-dev.yml中的公共配置会被覆盖,所以要把公共配置中的放行url再写一次
  9 + ignore-urls:
  10 + - '/actuator/**'
  11 + - '/v2/api-docs'
  12 + - '/user/info/*'
  13 + - '/social/info/*'
  14 + - '/mobile/*'
  15 + - '/log/save'
  16 +
  17 +# 数据源
  18 +spring:
  19 + datasource:
  20 + type: com.zaxxer.hikari.HikariDataSource
  21 + driver-class-name: com.mysql.cj.jdbc.Driver
  22 + username: link-root
  23 + password: 123456
  24 + url: jdbc:mysql://192.168.29.104:3306/trobs?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true
  25 +
  26 +# swagger相关配置,覆盖全局配置
  27 +swagger:
  28 + authorization:
  29 + authorization-scope-list:
  30 + - scope: 'server'
  31 + description: 'server all'
  32 + - scope: 'read'
  33 + description: 'read all'
  34 + - scope: 'write'
  35 + description: 'access all'
  36 +# Logger Config
  37 +logging:
  38 + level:
  39 + com.trob4cloud.trobs.admin.mapper: debug