This commit is contained in:
Jane
2023-12-22 10:59:10 +08:00
parent 751c43e199
commit d1ede2d4aa
2774 changed files with 291509 additions and 0 deletions

12
studio/config/Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM openjdk:8u212-jre-alpine
ENV SPRING_PROFILES_ACTIVE=dev
ENV TIME_ZONE=Asia/Shanghai
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/' /etc/apk/repositories
RUN apk add --update font-adobe-100dpi ttf-dejavu fontconfig
RUN apk update && apk add --no-cache tzdata curl\
&& echo "${TIME_ZONE}" > /etc/timezone \
&& ln -sf /usr/share/zoneinfo/${TIME_ZONE} /etc/localtime
COPY ./target/config.jar /
WORKDIR /
EXPOSE 8611
CMD ["java","-jar","config.jar"]

47
studio/config/pom.xml Normal file
View File

@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>studio</artifactId>
<groupId>com.platform</groupId>
<version>0.4.x</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<version>0.4.x</version>
<artifactId>config</artifactId>
<description>config</description>
<dependencies>
<!--web 模块-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<artifactId>spring-boot-starter-tomcat</artifactId>
<groupId>org.springframework.boot</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-undertow</artifactId>
</dependency>
<!--配置中心-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-config-server</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>

View File

@@ -0,0 +1,17 @@
package cn.datax.config;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;
@EnableDiscoveryClient
@EnableConfigServer
@SpringBootApplication
public class DataxConfigApplication {
public static void main(String[] args) {
SpringApplication.run(DataxConfigApplication.class, args);
}
}

View File

@@ -0,0 +1,41 @@
server:
port: 8611
spring:
application:
name: config
profiles:
active: native
# 配置中心
cloud:
config:
server:
native:
search-locations: classpath:/config/
# 注册中心配置
eureka:
instance:
lease-renewal-interval-in-seconds: 20
# 设置使用IP
prefer-ip-address: true
# 设置外网IP号
ip-address: 192.168.1.169
client:
register-with-eureka: true
fetch-registry: true
instance-info-replication-interval-seconds: 30
registry-fetch-interval-seconds: 3
service-url:
defaultZone: http://192.168.1.169:8610/eureka
# 暴露监控端点
management:
endpoints:
web:
exposure:
include: '*'
logging:
level:
com.data.cloud: info

View File

@@ -0,0 +1,37 @@
# Global Mysql、Redis and RabbitMQ connect configuration items
common:
rabbitmq:
host: localhost
username: root
password: 123456
port: 5672
redis:
host: 192.168.1.168
password:
port: 6379
mysql:
primary:
username: studio
password: Studio@123
url: jdbc:mysql://192.168.1.168:3307/studio?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8
master:
username: studio
password: Studio@123
url: jdbc:p6spy:mysql://192.168.1.168:3307/studio?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8
flowable:
username: studio
password: Studio@123
url: jdbc:mysql://192.168.1.168:3307/studio?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true
quartz:
username: studio
password: Studio@123
url: jdbc:mysql://192.168.1.168:3307/studio?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8
druid:
username: studio
password: Studio@123
url: jdbc:mysql://192.168.1.168:3307/studio?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8
dts:
driver-class-name: com.mysql.jdbc.Driver
username: studio
password: Studio@123
url: jdbc:mysql://192.168.1.168:3307/studio?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8

View File

@@ -0,0 +1,102 @@
# Spring 相关
spring:
mvc:
throw-exception-if-no-handler-found: true
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
# zipkin
# zipkin:
# enabled: true
# base-url: http://localhost:9411/
# sleuth:
# web:
# client:
# enabled: true
# sampler:
# # 默认的采样比率为0.1,不能看到所有请求数据
# # 更改采样比率为1就能看到所有的请求数据了但是这样会增加接口调用延迟
# probability: 0.5
# 暴露监控端点
management:
endpoints:
web:
exposure:
include: '*'
# feign 配置
feign:
hystrix:
enabled: true
okhttp:
enabled: true
httpclient:
enabled: false
client:
config:
default:
connectTimeout: 120000
readTimeout: 120000
compression:
request:
enabled: true
response:
enabled: true
# hystrix 配置
hystrix:
command:
default: #default全局有效service id指定应用有效
execution:
timeout:
enabled: true
isolation:
strategy: SEMAPHORE
thread:
timeoutInMilliseconds: 120000 #断路器超时时间默认1000ms
dataSqlConsoleHystrix: #sql工作台方法的超时时间 60s
fallback:
enabled: true
execution:
timeout:
enabled: true
isolation:
thread:
timeoutInMilliseconds: 120000 #断路器超时时间默认1000ms
dataApiMappingHystrix: #api调用方法的超时时间 60s
fallback:
enabled: true
execution:
timeout:
enabled: true
isolation:
thread:
timeoutInMilliseconds: 120000 #断路器超时时间默认1000ms
shareSecurityContext: true
# 请求处理的超时时间
# 建议hystrix的超时时间为:(1 + MaxAutoRetries + MaxAutoRetriesNextServer) * ReadTimeout
ribbon:
eager-load:
enabled: true
clients:
- service-system
- service-data-system
- service-data-metadata
- service-data-console
- service-data-market
- service-data-mapping
- service-data-integration
- service-data-visual
- service-data-masterdata
- service-data-standard
- service-data-compare
- service-quartz
- service-workflow
- service-data-dts
OkToRetryOnAllOperations: false #对所有操作请求都进行重试,默认false
ReadTimeout: 120000 #负载均衡超时时间默认值5000
ConnectTimeout: 6000 #ribbon请求连接的超时时间默认值2000
MaxAutoRetries: 0 #对当前实例的重试次数默认0
MaxAutoRetriesNextServer: 1 #对切换实例的重试次数默认1

View File

@@ -0,0 +1,240 @@
spring:
profiles:
include: common-dev
cloud:
gateway:
globalcors:
corsConfigurations:
'[/**]':
allowedOrigins: "*"
allowedMethods: "*"
allowedHeaders: "*"
allowCredentials: true
discovery:
locator:
enabled: true
lower-case-service-id: true
routes:
# 系统基础设置中心
- id: service-system
uri: lb://service-system
predicates:
- Path=/system/**
filters:
- SwaggerHeaderFilter
- StripPrefix=1
- name: Hystrix
args:
name: systemHystrix
fallbackUri: forward:/fallback
# 系统基础设置中心
- id: service-system
uri: lb:ws://service-system
predicates:
- Path=/ws/**
filters:
- StripPrefix=1
# 邮件中心
- id: service-email
uri: lb://service-email
predicates:
- Path=/email/**
filters:
- SwaggerHeaderFilter
- StripPrefix=1
- name: Hystrix
args:
name: emailHystrix
fallbackUri: forward:/fallback
# 文件中心
- id: service-file
uri: lb://service-file
predicates:
- Path=/file/**
filters:
- SwaggerHeaderFilter
- StripPrefix=1
- name: Hystrix
args:
name: fileHystrix
fallbackUri: forward:/fallback
# 元数据管理
- id: service-data-metadata
uri: lb://service-data-metadata
predicates:
- Path=/data/metadata/**
filters:
- SwaggerHeaderFilter
- StripPrefix=2
- name: Hystrix
args:
name: dataMetadataHystrix
fallbackUri: forward:/fallback
# 数据SQL工作台
- id: service-data-console
uri: lb://service-data-console
predicates:
- Path=/data/console/**
filters:
- SwaggerHeaderFilter
- StripPrefix=2
- name: Hystrix
args:
name: dataSqlConsoleHystrix
fallbackUri: forward:/fallback
# 数据集市中心
- id: service-data-market
uri: lb://service-data-market
predicates:
- Path=/data/market/**
filters:
- SwaggerHeaderFilter
- StripPrefix=2
- name: Hystrix
args:
name: dataMarketHystrix
fallbackUri: forward:/fallback
# 数据API注册
- id: service-data-mapping
uri: lb://service-data-mapping
predicates:
- Path=/data/api/**
filters:
- SwaggerHeaderFilter
- StripPrefix=2
- name: Hystrix
args:
name: dataApiMappingHystrix
fallbackUri: forward:/fallback
# 数据服务集成
- id: service-data-integration
uri: lb://service-data-integration
predicates:
- Path=/data/service/**
filters:
- SwaggerHeaderFilter
- StripPrefix=2
- name: Hystrix
args:
name: dataIntegrationHystrix
fallbackUri: forward:/fallback
# 数据可视化
- id: service-data-visual
uri: lb://service-data-visual
predicates:
- Path=/data/visual/**
filters:
- SwaggerHeaderFilter
- StripPrefix=2
- name: Hystrix
args:
name: dataVisualHystrix
fallbackUri: forward:/fallback
# 主数据
- id: service-data-masterdata
uri: lb://service-data-masterdata
predicates:
- Path=/data/masterdata/**
filters:
- SwaggerHeaderFilter
- StripPrefix=2
- name: Hystrix
args:
name: dataMasterdataHystrix
fallbackUri: forward:/fallback
# 数据质量
- id: service-data-quality
uri: lb://service-data-quality
predicates:
- Path=/data/quality/**
filters:
- SwaggerHeaderFilter
- StripPrefix=2
- name: Hystrix
args:
name: dataQualityHystrix
fallbackUri: forward:/fallback
# 数据标准
- id: service-data-standard
uri: lb://service-data-standard
predicates:
- Path=/data/standard/**
filters:
- SwaggerHeaderFilter
- StripPrefix=2
- name: Hystrix
args:
name: dataStandardHystrix
fallbackUri: forward:/fallback
# data-system
- id: service-data-system
uri: lb://service-data-system
predicates:
- Path=/data/system/**
filters:
- SwaggerHeaderFilter
- StripPrefix=2
- name: Hystrix
args:
name: dataSystemHystrix
fallbackUri: forward:/fallback
# data-system
- id: service-data-compare
uri: lb://service-data-compare
predicates:
- Path=/data/compare/**
filters:
- SwaggerHeaderFilter
- StripPrefix=2
- name: Hystrix
args:
name: dataCompareHystrix
fallbackUri: forward:/fallback
# 定时任务
- id: service-quartz
uri: lb://service-quartz
predicates:
- Path=/quartz/**
filters:
- SwaggerHeaderFilter
- StripPrefix=1
- name: Hystrix
args:
name: quartzHystrix
fallbackUri: forward:/fallback
# 代码生成器
- id: service-codegen
uri: lb://service-codegen
predicates:
- Path=/codegen/**
filters:
- SwaggerHeaderFilter
- StripPrefix=1
- name: Hystrix
args:
name: codegenHystrix
fallbackUri: forward:/fallback
# 工作流
- id: service-workflow
uri: lb://service-workflow
predicates:
- Path=/workflow/**
filters:
- SwaggerHeaderFilter
- StripPrefix=1
- name: Hystrix
args:
name: workflowHystrix
fallbackUri: forward:/fallback
# 数据集成
- id: service-data-dts
uri: lb://service-data-dts
predicates:
- Path=/data/dts/**
filters:
- SwaggerHeaderFilter
- StripPrefix=2
- name: Hystrix
args:
name: dataSystemHystrix
fallbackUri: forward:/fallback

View File

@@ -0,0 +1,68 @@
# 数据源配置
spring:
profiles:
include: common-dev
redis:
database: 1
host: ${common.redis.host}
port: ${common.redis.port}
password: ${common.redis.password} # 密码(默认为空)
timeout: 6000ms # 连接超时时长(毫秒)
jedis:
pool:
max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
max-idle: 10 # 连接池中的最大空闲连接
min-idle: 5 # 连接池中的最小空闲连接
datasource:
dynamic:
primary: master
strict: false
datasource:
master:
driver-class-name: com.p6spy.engine.spy.P6SpyDriver
url: ${common.mysql.master.url}
username: ${common.mysql.master.username}
password: ${common.mysql.master.password}
mybatis-plus:
mapper-locations: classpath*:mapper/*Mapper.xml
type-aliases-package: cn.datax.service.codegen.api.entity
global-config:
db-config:
id-type: ASSIGN_ID
select-strategy: not_empty
insert-strategy: not_empty
update-strategy: not_empty
banner: false
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
call-setters-on-nulls: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# spring security 配置
security:
oauth2:
client:
access-token-uri: http://16gslave:8612/auth/oauth/token
user-authorization-uri: http://16gslave:8612/auth/oauth/authorize
client-id: AllData
client-secret: 123456
scope: all
resource:
loadBalanced: true
token-info-uri: http://16gslave:8612/auth/oauth/check_token
# Swagger界面内容配置
swagger:
enable: true
title: API接口文档
description: Api Documentation
version: 1.0.0
basePackage: cn.datax.service.codegen.controller
termsOfServiceUrl: https://github.com/alldatacenter/alldata
contact:
name: AllDataDC
url: https://github.com/alldatacenter/alldata
email: m13602574132@163.com

View File

@@ -0,0 +1,127 @@
# 项目相关配置
data:
compare:
# 名称
name: DataCompare
# 版本
version: 0.3.6
copyrightYear: 2023
demoEnabled: true
profile: ./upload
# 获取ip地址开关
addressEnabled: false
# 日志配置
logging:
level:
com.ruoyi: debug
org.springframework: warn
# 用户配置
user:
password:
# 密码错误{maxRetryCount}次锁定10分钟
maxRetryCount: 5
# Spring配置
spring:
profiles:
include: common-dev
# 模板引擎
thymeleaf:
mode: HTML
encoding: utf-8
# 禁用缓存
cache: false
# 资源信息
messages:
# 国际化资源文件路径
basename: static/i18n/messages
jackson:
time-zone: GMT+8
date-format: yyyy-MM-dd HH:mm:ss
datasource:
druid:
# 主库数据源
master:
url: ${common.mysql.druid.url}
username: ${common.mysql.druid.username}
password: ${common.mysql.druid.password}
# 从库数据源
slave:
# 从数据源开关/默认关闭
enabled: false
url:
username:
password:
# 初始连接数
initialSize: 5
# 最小连接池数量
minIdle: 10
# 最大连接池数量
maxActive: 20
# 配置获取连接等待超时的时间
maxWait: 60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
timeBetweenEvictionRunsMillis: 60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
minEvictableIdleTimeMillis: 300000
# 配置一个连接在池中最大生存的时间,单位是毫秒
maxEvictableIdleTimeMillis: 900000
# 配置检测连接是否有效
validationQuery: SELECT 1 FROM DUAL
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
webStatFilter:
enabled: true
statViewServlet:
enabled: true
# 设置白名单,不填则允许所有访问
allow:
url-pattern: /druid/*
# 控制台管理用户名和密码
login-username: AllDataDC
login-password: ${common.mysql.druid.password}
filter:
stat:
enabled: true
# 慢SQL记录
log-slow-sql: true
slow-sql-millis: 1000
merge-sql: true
wall:
config:
multi-statement-allow: true
# 文件上传
servlet:
multipart:
# 单个文件大小
max-file-size: 10MB
# 设置总上传的文件大小
max-request-size: 20MB
# 服务模块
devtools:
restart:
# 热部署开关
enabled: true
# MyBatis
mybatis:
# 搜索指定包别名
typeAliasesPackage: com.platform.system.**.domain
# 配置mapper的扫描找到所有的mapper.xml映射文件
mapperLocations: classpath:mybatis/**/*Mapper.xml
# 加载全局的配置文件
configLocation: classpath:mybatis/mybatis-config.xml
# PageHelper分页插件
pagehelper:
helperDialect: mysql
supportMethodsArguments: true
params: count=countSql
# Swagger配置
swagger:
# 是否开启swagger
enabled: true

View File

@@ -0,0 +1,68 @@
# 数据源配置
spring:
profiles:
include: common-dev
redis:
database: 1
host: ${common.redis.host}
port: ${common.redis.port}
password: ${common.redis.password} # 密码(默认为空)
timeout: 6000ms # 连接超时时长(毫秒)
jedis:
pool:
max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
max-idle: 10 # 连接池中的最大空闲连接
min-idle: 5 # 连接池中的最小空闲连接
datasource:
dynamic:
primary: master
strict: false
datasource:
master:
driver-class-name: com.p6spy.engine.spy.P6SpyDriver
url: ${common.mysql.master.url}
username: ${common.mysql.master.username}
password: ${common.mysql.master.password}
mybatis-plus:
mapper-locations: classpath*:mapper/*Mapper.xml
type-aliases-package: cn.datax.service.data.metadata.api.entity
global-config:
db-config:
id-type: ASSIGN_ID
select-strategy: not_empty
insert-strategy: not_empty
update-strategy: not_empty
banner: false
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
call-setters-on-nulls: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# spring security 配置
security:
oauth2:
client:
access-token-uri: http://16gslave:8612/auth/oauth/token
user-authorization-uri: http://16gslave:8612/auth/oauth/authorize
client-id: AllData
client-secret: 123456
scope: all
resource:
loadBalanced: true
token-info-uri: http://16gslave:8612/auth/oauth/check_token
# Swagger界面内容配置
swagger:
enable: true
title: API接口文档
description: Api Documentation
version: 1.0.0
basePackage: cn.datax.service.data.metadata.console.controller
termsOfServiceUrl: https://github.com/alldatacenter/alldata
contact:
name: AllDataDC
url: https://github.com/alldatacenter/alldata
email: m13602574132@163.com

View File

@@ -0,0 +1,111 @@
spring:
profiles:
include: common-dev
application:
name: service-data-dts
#数据源
datasource:
druid:
db-type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: ${common.mysql.dts.driver-class-name}
url: ${common.mysql.dts.url}
username: ${common.mysql.dts.username}
password: ${common.mysql.dts.password}
jpa:
hibernate:
ddl-auto: update
# email
mail:
host: smtp.qq.com
port: 25
username: test@qq.com
password: test
properties:
mail:
smtp:
auth: true
starttls:
enable: true
required: true
socketFactory:
class: javax.net.ssl.SSLSocketFactory
management:
health:
mail:
enabled: false
server:
servlet:
context-path: /actuator
mybatis-plus:
# mapper.xml文件扫描
mapper-locations: classpath*:/mybatis-mapper/*Mapper.xml
# 实体扫描多个package用逗号或者分号分隔
global-config:
# 数据库相关配置
db-config:
# 主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID", ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
id-type: AUTO
# 字段策略 IGNORED:"忽略判断",NOT_NULL:"非 NULL 判断"),NOT_EMPTY:"非空判断"
field-strategy: NOT_NULL
# 驼峰下划线转换
column-underline: true
# 逻辑删除
logic-delete-value: 0
logic-not-delete-value: 1
# 数据库类型
db-type: mysql
banner: false
# mybatis原生配置
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
call-setters-on-nulls: true
jdbc-type-for-null: 'null'
type-handlers-package: com.platform.admin.core.handler
#flinkx-job, access token
dts:
job:
accessToken:
#i18n (default empty as chinese, "en" as english)
i18n:
## triggerpool max size
triggerpool:
fast:
max: 200
slow:
max: 100
### log retention days
logretentiondays: 30
executor:
#项目里用到的只有chunjun的引用chunjun都是.sh文件需要自己拼shell命令
chunjunHome: /home/datax/datax/bin/datax.py #修改为自己的datax路径
chunjunjsonPath: /home/datax/datax/job/ #修改为自己的datax路径
chunjunlogHome: /home/datax/datax/job-log #修改为自己的datax路径
dataxHome: /home/datax/datax/bin/datax.py
dataxjsonPath: /home/datax/datax/job/
dataxlogHome: /home/datax/datax/job-log
datasource:
aes:
key: AD42F6697B035B75
#执行器配置
xxl:
job:
admin:
# 修改为自己的data-dts服务地址
addresses: http://16gmaster:9536
executor:
# 此执行器的名称
appname: flinkx-executor
# 此执行器的端口
port: 9537
# 此执行器的日志存放路径
logpath: logs/xxl-job/datax
# 此执行器的日志保存时间
logretentiondays: 7

View File

@@ -0,0 +1,68 @@
# 数据源配置
spring:
profiles:
include: common-dev
redis:
database: 1
host: ${common.redis.host}
port: ${common.redis.port}
password: ${common.redis.password} # 密码(默认为空)
timeout: 6000ms # 连接超时时长(毫秒)
jedis:
pool:
max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
max-idle: 10 # 连接池中的最大空闲连接
min-idle: 5 # 连接池中的最小空闲连接
datasource:
dynamic:
primary: master
strict: false
datasource:
master:
driver-class-name: com.p6spy.engine.spy.P6SpyDriver
url: ${common.mysql.master.url}
username: ${common.mysql.master.username}
password: ${common.mysql.master.password}
mybatis-plus:
mapper-locations: classpath*:mapper/*Mapper.xml
type-aliases-package: cn.datax.service.data.market.api.entity
global-config:
db-config:
id-type: ASSIGN_ID
select-strategy: not_empty
insert-strategy: not_empty
update-strategy: not_empty
banner: false
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
call-setters-on-nulls: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# spring security 配置
security:
oauth2:
client:
access-token-uri: http://16gslave:8612/auth/oauth/token
user-authorization-uri: http://16gslave:8612/auth/oauth/authorize
client-id: AllData
client-secret: 123456
scope: all
resource:
loadBalanced: true
token-info-uri: http://16gslave:8612/auth/oauth/check_token
# Swagger界面内容配置
swagger:
enable: true
title: API接口文档
description: Api Documentation
version: 1.0.0
basePackage: cn.datax.service.data.market.integration.controller
termsOfServiceUrl: https://github.com/alldatacenter/alldata
contact:
name: AllDataDC
url: https://github.com/alldatacenter/alldata
email: m13602574132@163.com

View File

@@ -0,0 +1,78 @@
# 数据源配置
spring:
profiles:
include: common-dev
redis:
database: 1
host: ${common.redis.host}
port: ${common.redis.port}
password: ${common.redis.password} # 密码(默认为空)
timeout: 6000ms # 连接超时时长(毫秒)
jedis:
pool:
max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
max-idle: 10 # 连接池中的最大空闲连接
min-idle: 5 # 连接池中的最小空闲连接
rabbitmq:
host: ${common.rabbitmq.host}
port: ${common.rabbitmq.port}
username: ${common.rabbitmq.username}
password: ${common.rabbitmq.password}
listener:
simple:
acknowledge-mode: manual
concurrency: 1
max-concurrency: 10
datasource:
dynamic:
primary: master
strict: false
datasource:
master:
driver-class-name: com.p6spy.engine.spy.P6SpyDriver
url: ${common.mysql.master.url}
username: ${common.mysql.master.username}
password: ${common.mysql.master.password}
mybatis-plus:
mapper-locations: classpath*:mapper/*Mapper.xml
type-aliases-package: cn.datax.service.data.market.api.entity
global-config:
db-config:
id-type: ASSIGN_ID
select-strategy: not_empty
insert-strategy: not_empty
update-strategy: not_empty
banner: false
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
call-setters-on-nulls: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# spring security 配置
security:
oauth2:
client:
access-token-uri: http://16gslave:8612/auth/oauth/token
user-authorization-uri: http://16gslave:8612/auth/oauth/authorize
client-id: AllData
client-secret: 123456
scope: all
resource:
loadBalanced: true
token-info-uri: http://16gslave:8612/auth/oauth/check_token
# Swagger界面内容配置
swagger:
enable: true
title: API接口文档
description: Api Documentation
version: 1.0.0
basePackage: cn.datax.service.data.market.mapping.controller
termsOfServiceUrl: https://github.com/alldatacenter/alldata
contact:
name: AllDataDC
url: https://github.com/alldatacenter/alldata
email: m13602574132@163.com

View File

@@ -0,0 +1,77 @@
# 数据源配置
spring:
profiles:
include: common-dev
redis:
database: 1
host: ${common.redis.host}
port: ${common.redis.port}
password: ${common.redis.password} # 密码(默认为空)
timeout: 6000ms # 连接超时时长(毫秒)
jedis:
pool:
max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
max-idle: 10 # 连接池中的最大空闲连接
min-idle: 5 # 连接池中的最小空闲连接
rabbitmq:
host: ${common.rabbitmq.host}
port: ${common.rabbitmq.port}
username: ${common.rabbitmq.username}
password: ${common.rabbitmq.password}
publisher-confirm-type: correlated
publisher-returns: true
template:
mandatory: true
datasource:
dynamic:
primary: master
strict: false
datasource:
master:
driver-class-name: com.p6spy.engine.spy.P6SpyDriver
url: ${common.mysql.master.url}
username: ${common.mysql.master.username}
password: ${common.mysql.master.password}
mybatis-plus:
mapper-locations: classpath*:mapper/*Mapper.xml
type-aliases-package: cn.datax.service.data.market.api.entity
global-config:
db-config:
id-type: ASSIGN_ID
select-strategy: not_empty
insert-strategy: not_empty
update-strategy: not_empty
banner: false
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
call-setters-on-nulls: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# spring security 配置
#security:
# oauth2:
# client:
# access-token-uri: http://16gslave:8612/auth/oauth/token
# user-authorization-uri: http://16gslave:8612/auth/oauth/authorize
# client-id: AllData
# client-secret: 123456
# scope: all
# resource:
# loadBalanced: true
# token-info-uri: http://16gslave:8612/auth/oauth/check_token
# Swagger界面内容配置
swagger:
enable: true
title: API接口文档
description: Api Documentation
version: 1.0.0
basePackage: cn.datax.service.data.market.controller
termsOfServiceUrl: https://github.com/alldatacenter/alldata
contact:
name: AllDataDC
url: https://github.com/alldatacenter/alldata
email: m13602574132@163.com

View File

@@ -0,0 +1,78 @@
# 数据源配置
spring:
profiles:
include: common-dev
redis:
database: 1
host: ${common.redis.host}
port: ${common.redis.port}
password: ${common.redis.password}
timeout: 6000ms # 连接超时时长(毫秒)
jedis:
pool:
max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
max-idle: 10 # 连接池中的最大空闲连接
min-idle: 5 # 连接池中的最小空闲连接
rabbitmq:
host: ${common.rabbitmq.host}
port: ${common.rabbitmq.port}
username: ${common.rabbitmq.username}
password: ${common.rabbitmq.password}
listener:
simple:
acknowledge-mode: manual
concurrency: 1
max-concurrency: 10
datasource:
dynamic:
primary: master
strict: false
datasource:
master:
driver-class-name: com.p6spy.engine.spy.P6SpyDriver
url: ${common.mysql.master.url}
username: ${common.mysql.master.username}
password: ${common.mysql.master.password}
mybatis-plus:
mapper-locations: classpath*:mapper/*Mapper.xml
type-aliases-package: cn.datax.service.data.masterdata.api.entity
global-config:
db-config:
id-type: ASSIGN_ID
select-strategy: not_empty
insert-strategy: not_empty
update-strategy: not_empty
banner: false
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
call-setters-on-nulls: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# spring security 配置
security:
oauth2:
client:
access-token-uri: http://16gslave:8612/auth/oauth/token
user-authorization-uri: http://16gslave:8612/auth/oauth/authorize
client-id: AllData
client-secret: 123456
scope: all
resource:
loadBalanced: true
token-info-uri: http://16gslave:8612/auth/oauth/check_token
# Swagger界面内容配置
swagger:
enable: true
title: API接口文档
description: Api Documentation
version: 1.0.0
basePackage: cn.datax.service.data.masterdata.controller
termsOfServiceUrl: https://github.com/alldatacenter/alldata
contact:
name: AllDataDC
url: https://github.com/alldatacenter/alldata
email: m13602574132@163.com

View File

@@ -0,0 +1,68 @@
# 数据源配置
spring:
profiles:
include: common-dev
redis:
database: 1
host: ${common.redis.host}
port: ${common.redis.port}
password: ${common.redis.password} # 密码(默认为空)
timeout: 6000ms # 连接超时时长(毫秒)
jedis:
pool:
max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
max-idle: 10 # 连接池中的最大空闲连接
min-idle: 5 # 连接池中的最小空闲连接
datasource:
dynamic:
primary: master
strict: false
datasource:
master:
driver-class-name: com.p6spy.engine.spy.P6SpyDriver
url: ${common.mysql.master.url}
username: ${common.mysql.master.username}
password: ${common.mysql.master.password}
mybatis-plus:
mapper-locations: classpath*:mapper/*Mapper.xml
type-aliases-package: cn.datax.service.data.metadata.api.entity
global-config:
db-config:
id-type: ASSIGN_ID
select-strategy: not_empty
insert-strategy: not_empty
update-strategy: not_empty
banner: false
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
call-setters-on-nulls: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
## spring security 配置
#security:
# oauth2:
# client:
# access-token-uri: http://16gslave:8612/auth/oauth/token
# user-authorization-uri: http://16gslave:8612/auth/oauth/authorize
# client-id: AllData
# client-secret: 123456
# scope: all
# resource:
# loadBalanced: true
# token-info-uri: http://16gslave:8612/auth/oauth/check_token
# Swagger界面内容配置
swagger:
enable: true
title: API接口文档
description: Api Documentation
version: 1.0.0
basePackage: cn.datax.service.data.metadata.controller
termsOfServiceUrl: https://github.com/alldatacenter/alldata
contact:
name: AllDataDC
url: https://github.com/alldatacenter/alldata
email: m13602574132@163.com

View File

@@ -0,0 +1,68 @@
# 数据源配置
spring:
profiles:
include: common-dev
redis:
database: 1
host: ${common.redis.host}
port: ${common.redis.port}
password: ${common.redis.password} # 密码(默认为空)
timeout: 6000ms # 连接超时时长(毫秒)
jedis:
pool:
max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
max-idle: 10 # 连接池中的最大空闲连接
min-idle: 5 # 连接池中的最小空闲连接
datasource:
dynamic:
primary: master
strict: false
datasource:
master:
driver-class-name: com.p6spy.engine.spy.P6SpyDriver
url: ${common.mysql.master.url}
username: ${common.mysql.master.username}
password: ${common.mysql.master.password}
mybatis-plus:
mapper-locations: classpath*:mapper/*Mapper.xml
type-aliases-package: cn.datax.service.data.quality.api.entity
global-config:
db-config:
id-type: ASSIGN_ID
select-strategy: not_empty
insert-strategy: not_empty
update-strategy: not_empty
banner: false
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
call-setters-on-nulls: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# spring security 配置
security:
oauth2:
client:
access-token-uri: http://16gslave:8612/auth/oauth/token
user-authorization-uri: http://16gslave:8612/auth/oauth/authorize
client-id: AllData
client-secret: 123456
scope: all
resource:
loadBalanced: true
token-info-uri: http://16gslave:8612/auth/oauth/check_token
# Swagger界面内容配置
swagger:
enable: true
title: API接口文档
description: Api Documentation
version: 1.0.0
basePackage: cn.datax.service.data.quality.controller
termsOfServiceUrl: https://github.com/alldatacenter/alldata
contact:
name: AllDataDC
url: https://github.com/alldatacenter/alldata
email: m13602574132@163.com

View File

@@ -0,0 +1,68 @@
# 数据源配置
spring:
profiles:
include: common-dev
redis:
database: 1
host: ${common.redis.host}
port: ${common.redis.port}
password: ${common.redis.password} # 密码(默认为空)
timeout: 6000ms # 连接超时时长(毫秒)
jedis:
pool:
max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
max-idle: 10 # 连接池中的最大空闲连接
min-idle: 5 # 连接池中的最小空闲连接
datasource:
dynamic:
primary: master
strict: false
datasource:
master:
driver-class-name: com.p6spy.engine.spy.P6SpyDriver
url: ${common.mysql.master.url}
username: ${common.mysql.master.username}
password: ${common.mysql.master.password}
mybatis-plus:
mapper-locations: classpath*:mapper/*Mapper.xml
type-aliases-package: cn.datax.service.data.standard.api.entity
global-config:
db-config:
id-type: ASSIGN_ID
select-strategy: not_empty
insert-strategy: not_empty
update-strategy: not_empty
banner: false
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
call-setters-on-nulls: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# spring security 配置
security:
oauth2:
client:
access-token-uri: http://16gslave:8612/auth/oauth/token
user-authorization-uri: http://16gslave:8612/auth/oauth/authorize
client-id: AllData
client-secret: 123456
scope: all
resource:
loadBalanced: true
token-info-uri: http://16gslave:8612/auth/oauth/check_token
# Swagger界面内容配置
swagger:
enable: true
title: API接口文档
description: Api Documentation
version: 1.0.0
basePackage: cn.datax.service.data.standard.controller
termsOfServiceUrl: https://github.com/alldatacenter/alldata
contact:
name: AllDataDC
url: https://github.com/alldatacenter/alldata
email: m13602574132@163.com

View File

@@ -0,0 +1,68 @@
# 数据源配置
spring:
profiles:
include: common-dev
redis:
database: 1
host: ${common.redis.host}
port: ${common.redis.port}
password: ${common.redis.password} # 密码(默认为空)
timeout: 6000ms # 连接超时时长(毫秒)
jedis:
pool:
max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
max-idle: 10 # 连接池中的最大空闲连接
min-idle: 5 # 连接池中的最小空闲连接
datasource:
dynamic:
primary: master
strict: false
datasource:
master:
driver-class-name: com.p6spy.engine.spy.P6SpyDriver
url: ${common.mysql.master.url}
username: ${common.mysql.master.username}
password: ${common.mysql.master.password}
mybatis-plus:
mapper-locations: classpath*:mapper/*Mapper.xml
type-aliases-package: cn.datax.service.system.api.entity
global-config:
db-config:
id-type: ASSIGN_ID
select-strategy: not_empty
insert-strategy: not_empty
update-strategy: not_empty
banner: false
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
call-setters-on-nulls: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# spring security 配置
security:
oauth2:
client:
access-token-uri: http://16gslave:8612/auth/oauth/token
user-authorization-uri: http://16gslave:8612/auth/oauth/authorize
client-id: AllData
client-secret: 123456
scope: all
resource:
loadBalanced: true
token-info-uri: http://16gslave:8612/auth/oauth/check_token
# Swagger界面内容配置
swagger:
enable: true
title: API接口文档
description: Api Documentation
version: 1.0.0
basePackage: cn.datax.service.system.controller
termsOfServiceUrl: https://github.com/alldatacenter/alldata
contact:
name: AllDataDC
url: https://github.com/alldatacenter/alldata
email: m13602574132@163.com

View File

@@ -0,0 +1,68 @@
# 数据源配置
spring:
profiles:
include: common-dev
redis:
database: 1
host: ${common.redis.host}
port: ${common.redis.port}
password: ${common.redis.password} # 密码(默认为空)
timeout: 6000ms # 连接超时时长(毫秒)
jedis:
pool:
max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
max-idle: 10 # 连接池中的最大空闲连接
min-idle: 5 # 连接池中的最小空闲连接
datasource:
dynamic:
primary: master
strict: false
datasource:
master:
driver-class-name: com.p6spy.engine.spy.P6SpyDriver
url: ${common.mysql.master.url}
username: ${common.mysql.master.username}
password: ${common.mysql.master.password}
mybatis-plus:
mapper-locations: classpath*:mapper/*Mapper.xml
type-aliases-package: cn.datax.service.data.visual.api.entity
global-config:
db-config:
id-type: ASSIGN_ID
select-strategy: not_empty
insert-strategy: not_empty
update-strategy: not_empty
banner: false
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
call-setters-on-nulls: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# spring security 配置
security:
oauth2:
client:
access-token-uri: http://16gslave:8612/auth/oauth/token
user-authorization-uri: http://16gslave:8612/auth/oauth/authorize
client-id: AllData
client-secret: 123456
scope: all
resource:
loadBalanced: true
token-info-uri: http://16gslave:8612/auth/oauth/check_token
# Swagger界面内容配置
swagger:
enable: true
title: API接口文档
description: Api Documentation
version: 1.0.0
basePackage: cn.datax.service.data.visual.controller
termsOfServiceUrl: https://github.com/alldatacenter/alldata
contact:
name: AllDataDC
url: https://github.com/alldatacenter/alldata
email: m13602574132@163.com

View File

@@ -0,0 +1,79 @@
# 数据源配置
spring:
profiles:
include: common-dev
mail:
host: smtp.qq.com
username: m13602574132@163.com
password: xxxxx
protocol: smtp
default-encoding: utf-8
properties.mail.smtp.auth: true
properties.mail.smtp.port: 465
properties.mail.smtp.starttls.enable: true
properties.mail.smtp.starttls.required: true
properties.mail.smtp.ssl.enable: true
redis:
database: 1
host: ${common.redis.host}
port: ${common.redis.port}
password: ${common.redis.password} # 密码(默认为空)
timeout: 6000ms # 连接超时时长(毫秒)
jedis:
pool:
max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
max-idle: 10 # 连接池中的最大空闲连接
min-idle: 5 # 连接池中的最小空闲连接
datasource:
dynamic:
primary: master
strict: false
datasource:
master:
driver-class-name: com.p6spy.engine.spy.P6SpyDriver
url: ${common.mysql.master.url}
username: ${common.mysql.master.username}
password: ${common.mysql.master.password}
mybatis-plus:
mapper-locations: classpath*:mapper/*Mapper.xml
type-aliases-package: cn.datax.service.email.api.entity
global-config:
db-config:
id-type: ASSIGN_ID
select-strategy: not_empty
insert-strategy: not_empty
update-strategy: not_empty
banner: false
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
call-setters-on-nulls: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# spring security 配置
security:
oauth2:
client:
access-token-uri: http://16gslave:8612/auth/oauth/token
user-authorization-uri: http://16gslave:8612/auth/oauth/authorize
client-id: AllData
client-secret: 123456
scope: all
resource:
loadBalanced: true
token-info-uri: http://16gslave:8612/auth/oauth/check_token
# Swagger界面内容配置
swagger:
enable: true
title: API接口文档
description: Api Documentation
version: 1.0.0
basePackage: cn.datax.service.email.controller
termsOfServiceUrl: https://github.com/alldatacenter/alldata
contact:
name: AllDataDC
url: https://github.com/alldatacenter/alldata
email: m13602574132@163.com

View File

@@ -0,0 +1,82 @@
# 数据源配置
spring:
profiles:
include: common-dev
redis:
database: 1
host: ${common.redis.host}
port: ${common.redis.port}
password: ${common.redis.password} # 密码(默认为空)
timeout: 6000ms # 连接超时时长(毫秒)
jedis:
pool:
max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
max-idle: 10 # 连接池中的最大空闲连接
min-idle: 5 # 连接池中的最小空闲连接
datasource:
dynamic:
primary: master
strict: false
datasource:
master:
driver-class-name: com.p6spy.engine.spy.P6SpyDriver
url: ${common.mysql.master.url}
username: ${common.mysql.master.username}
password: ${common.mysql.master.password}
mybatis-plus:
mapper-locations: classpath*:mapper/*Mapper.xml
type-aliases-package: cn.datax.service.file.api.entity
global-config:
db-config:
id-type: ASSIGN_ID
select-strategy: not_empty
insert-strategy: not_empty
update-strategy: not_empty
banner: false
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
call-setters-on-nulls: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# spring security 配置
security:
oauth2:
client:
access-token-uri: http://16gslave:8612/auth/oauth/token
user-authorization-uri: http://16gslave:8612/auth/oauth/authorize
client-id: AllData
client-secret: 123456
scope: all
resource:
loadBalanced: true
token-info-uri: http://16gslave:8612/auth/oauth/check_token
# Swagger界面内容配置
swagger:
enable: true
title: API接口文档
description: Api Documentation
version: 1.0.0
basePackage: cn.datax.service.file.controller
termsOfServiceUrl: https://github.com/alldatacenter/alldata
contact:
name: AllDataDC
url: https://github.com/alldatacenter/alldata
email: m13602574132@163.com
data:
file-server:
type: local
#oss配置
oss:
access-key: tpi8mObnfzZi4ggBX8Bw7zydjoTQ0WeML3RkPKsX
access-key-secret: HZBXmSyUTy-haYp0KbBTtsil-GoKjVS2kDKT8Yow
bucket-name: public-oss
domain-name: http://pkqtmn0p1.bkt.clouddn.com
#local配置
local:
path: "F:\\uploadfile"
prefix: "fileView"

View File

@@ -0,0 +1,91 @@
# 数据源配置
spring:
profiles:
include: common-dev
redis:
database: 1
host: ${common.redis.host}
port: ${common.redis.port}
password: ${common.redis.password} # 密码(默认为空)
timeout: 6000ms # 连接超时时长(毫秒)
jedis:
pool:
max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
max-idle: 10 # 连接池中的最大空闲连接
min-idle: 5 # 连接池中的最小空闲连接
datasource:
primary:
driver-class-name: com.mysql.cj.jdbc.Driver
username: ${common.mysql.primary.username}
password: ${common.mysql.primary.password}
url: ${common.mysql.primary.url}
quartz:
driver-class-name: com.mysql.cj.jdbc.Driver
username: ${common.mysql.quartz.username}
password: ${common.mysql.quartz.password}
url: ${common.mysql.quartz.url}
quartz:
job-store-type: jdbc
jdbc:
initialize-schema: never
properties:
org:
quartz:
scheduler:
instancName: clusteredScheduler
instanceId: AUTO
jobStore:
class: org.quartz.impl.jdbcjobstore.JobStoreTX
driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
tablePrefix: QRTZ_
isClustered: true
clusterCheckinInterval: 1000
useProperties: false
threadPool:
class: org.quartz.simpl.SimpleThreadPool
threadCount: 10
threadPriority: 5
threadsInheritContextClassLoaderOfInitializingThread: true
mybatis-plus:
mapper-locations: classpath*:mapper/*Mapper.xml
type-aliases-package: cn.datax.service.quartz.api.entity
global-config:
db-config:
id-type: ASSIGN_ID
select-strategy: not_empty
insert-strategy: not_empty
update-strategy: not_empty
banner: false
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
call-setters-on-nulls: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# spring security 配置
security:
oauth2:
client:
access-token-uri: http://16gslave:8612/auth/oauth/token
user-authorization-uri: http://16gslave:8612/auth/oauth/authorize
client-id: AllData
client-secret: 123456
scope: all
resource:
loadBalanced: true
token-info-uri: http://16gslave:8612/auth/oauth/check_token
# Swagger界面内容配置
swagger:
enable: true
title: API接口文档
description: Api Documentation
version: 1.0.0
basePackage: cn.datax.service.quartz.controller
termsOfServiceUrl: https://github.com/alldatacenter/alldata
contact:
name: AllDataDC
url: https://github.com/alldatacenter/alldata
email: m13602574132@163.com

View File

@@ -0,0 +1,159 @@
# 数据源配置
dynamicDataSource:
default:
driverClassName: com.p6spy.engine.spy.P6SpyDriver
url: ${common.mysql.master.url}
username: ${common.mysql.master.username}
password: ${common.mysql.master.password}
spring:
profiles:
include: common-dev,dev
redis:
#数据库索引
database: ${REDIS_DB:0}
host: ${common.redis.host}
port: ${common.redis.port}
password: ${common.redis.password}
#连接超时时间
timeout: 5000
jedis:
pool:
max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
max-idle: 10 # 连接池中的最大空闲连接
min-idle: 5 # 连接池中的最小空闲连接
datasource:
druid:
db-type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: ${common.mysql.druid.url}
username: ${common.mysql.druid.username}
password: ${common.mysql.druid.password}
# 初始连接数
initial-size: 5
# 最小连接数
min-idle: 15
# 最大连接数
max-active: 30
# 超时时间(以秒数为单位)
remove-abandoned-timeout: 180
# 获取连接超时时间
max-wait: 3000
# 连接有效性检测时间
time-between-eviction-runs-millis: 60000
# 连接在池中最小生存的时间
min-evictable-idle-time-millis: 300000
# 连接在池中最大生存的时间
max-evictable-idle-time-millis: 900000
# 指明连接是否被空闲连接回收器(如果有)进行检验.如果检测失败,则连接将被从池中去除
test-while-idle: true
# 指明是否在从池中取出连接前进行检验,如果检验失败, 则从池中去除连接并尝试取出另一个
test-on-borrow: true
# 是否在归还到池中前进行检验
test-on-return: false
# 检测连接是否有效
validation-query: select 1
# 配置监控统计
webStatFilter:
enabled: true
stat-view-servlet:
enabled: true
url-pattern: /druid/*
reset-enable: false
filter:
stat:
enabled: true
# 记录慢SQL
log-slow-sql: true
slow-sql-millis: 1000
merge-sql: true
wall:
config:
multi-statement-allow: true
main:
allow-bean-definition-overriding: true
management:
health:
mail:
enabled: false
server:
servlet:
context-path: /actuator
datasource:
aes:
key: AD42F6697B035B75
# 登录相关配置
login:
# 是否限制单用户登录
single-login: false
# Redis用户登录缓存配置
user-cache:
# 存活时间/秒
idle-time: 7200
# 验证码
login-code:
# 验证码类型配置 查看 LoginProperties 类
code-type: arithmetic
# 登录图形验证码有效时间/分钟
expiration: 2
# 验证码高度
width: 111
# 验证码宽度
height: 36
# 内容长度
length: 2
# 字体名称,为空则使用默认字体
font-name:
# 字体大小
font-size: 25
#jwt
jwt:
header: Authorization
# 令牌前缀
token-start-with: Bearer
# 必须使用最少88位的Base64对该令牌进行编码
base64-secret: ZmQ0ZGI5NjQ0MDQwY2I4MjMxY2Y3ZmI3MjdhN2ZmMjNhODViOTg1ZGE0NTBjMGM4NDA5NzYxMjdjOWMwYWRmZTBlZjlhNGY3ZTg4Y2U3YTE1ODVkZDU5Y2Y3OGYwZWE1NzUzNWQ2YjFjZDc0NGMxZWU2MmQ3MjY1NzJmNTE0MzI=
# 令牌过期时间 此处单位/毫秒 默认4小时可在此网站生成 https://www.convertworld.com/zh-hans/time/milliseconds.html
token-validity-in-seconds: 14400000
# 在线用户key
online-key: online-token-
# 验证码
code-key: code-key-
# token 续期检查时间范围默认30分钟单位毫秒在token即将过期的一段时间内用户操作了则给用户的token续期
detect: 1800000
# 续期时间范围默认1小时单位毫秒
renew: 3600000
#是否允许生成代码生产环境设置为false
generator:
enabled: true
#是否开启 swagger-ui
swagger:
enabled: true
# IP 本地解析
ip:
local-parsing: true
# 文件存储路径
file:
mac:
path: ~/file/
avatar: ~/avatar/
linux:
path: /home/studio/file/
avatar: /home/studio/avatar/
windows:
path: E:\\studio\\file\\
avatar: E:\\studio\\avatar\\
# 文件大小 /M
maxSize: 100
avatarMaxSize: 5

View File

@@ -0,0 +1,89 @@
# 数据源配置
spring:
profiles:
include: common-dev
redis:
database: 1
host: ${common.redis.host}
port: ${common.redis.port}
password: ${common.redis.password} # 密码(默认为空)
timeout: 6000ms # 连接超时时长(毫秒)
jedis:
pool:
max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
max-idle: 10 # 连接池中的最大空闲连接
min-idle: 5 # 连接池中的最小空闲连接
rabbitmq:
host: ${common.rabbitmq.host}
port: ${common.rabbitmq.port}
username: ${common.rabbitmq.username}
password: ${common.rabbitmq.password}
publisher-confirm-type: correlated
publisher-returns: true
template:
mandatory: true
datasource:
dynamic:
primary: master
strict: false
datasource:
master:
driver-class-name: com.p6spy.engine.spy.P6SpyDriver
url: ${common.mysql.master.url}
username: ${common.mysql.master.username}
password: ${common.mysql.master.password}
flowable:
driver-class-name: com.mysql.cj.jdbc.Driver
username: ${common.mysql.flowable.username}
password: ${common.mysql.flowable.password}
# 如果不加这个参数建表会失败nullCatalogMeansCurrent=true
url: ${common.mysql.flowable.url}
flowable:
# 关闭定时任务JOB
async-executor-activate: false
# 将databaseSchemaUpdate设置为true。当Flowable发现库与数据库表结构不一致时会自动将数据库表结构升级至新版本。
database-schema-update: true
mybatis-plus:
mapper-locations: classpath*:mapper/*Mapper.xml
type-aliases-package: cn.datax.service.workflow.api.entity
global-config:
db-config:
id-type: ASSIGN_ID
select-strategy: not_empty
insert-strategy: not_empty
update-strategy: not_empty
banner: false
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
call-setters-on-nulls: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# spring security 配置
security:
oauth2:
client:
access-token-uri: http://16gslave:8612/auth/oauth/token
user-authorization-uri: http://16gslave:8612/auth/oauth/authorize
client-id: AllData
client-secret: 123456
scope: all
resource:
loadBalanced: true
token-info-uri: http://16gslave:8612/auth/oauth/check_token
# Swagger界面内容配置
swagger:
enable: true
title: API接口文档
description: Api Documentation
version: 1.0.0
basePackage: cn.datax.service.workflow.controller
termsOfServiceUrl: https://github.com/alldatacenter/alldata
contact:
name: AllDataDC
url: https://github.com/alldatacenter/alldata
email: m13602574132@163.com