to be honestly, the project name is pretty arbitrary, it's just a learning practice of project reactor~
it's major function is to upload excel files, and through a custom simple rpc protocol to transfer excel data to other services, or pull data from other services and export to excel by submitting an export task.
- initialing the database via data-center.sql,it's in the 'attachments' directory
- install xxl-job and create xxl-job task,the task type is Broadcast
- taskExecutorJob
- timeoutTaskJob
- install nacos、redis
- start web-demo
- set your oss address :
spring:
data:
redis:
database: 0
host: localhost
port: 6379
r2dbc:
url: r2dbc:mysql://localhost:3306/data-center?allowMultiQueries=true&useUnicode=true&useSSL=false&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true&nullCatalogMeansCurrent=true
username: root
password: 123456
name: data-center
application:
name: reactor-data-center
s3:
config:
enable: true
type: tencent.cloud
access-key:
access-secret:
end-point:
bucket:
task:
oss:
bucket:
err-path:
path:
temp-path: # the local temp file path
- execute taskExecutorJob
- upload the file import_test.xlsx in attachments directory to oss
- save the file url to database (table->template_task flied -> file_url)
- execute taskExecutorJob at xxl-job dashboard