初始化计算引擎

This commit is contained in:
谷成伟 2024-11-01 13:47:02 +08:00
parent 5eb9c86d57
commit c02e013361
2 changed files with 101 additions and 1 deletions

View File

@ -79,7 +79,7 @@ public class FunctionSaveCalcData extends AbstractVariadicFunction {
dataList.add(dt);
}
// dataService.updateCalFieldData(dataList);
dataService.updateCalFieldData(dataList);
return AviatorRuntimeJavaType.valueOf(0);
}
}

View File

@ -0,0 +1,100 @@
server:
port: 8080
# SpringBoot中我们既可以使用Tomcat作为Http服务也可以用Undertow来代替。Undertow在高并发业务场景中性能优于Tomcat
undertow:
threads:
# 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程
io: 16
# 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载
worker: 400
# 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理
# 每块buffer的空间大小,越小的空间被利用越充分
buffer-size: 1024
# HTTP post内容的最大大小。当值为-1时默认值为大小是无限的
max-http-post-size: -1
# 是否分配的直接内存
direct-buffers: true
sa-token:
# token有效期单位秒
expireTime: 7200
refreshExpireTime: 604800
# 是否允许同一账号多终端登录默认为true
is-concurrent: true
spring:
application:
name: das
#json格式化全局配置,相当于@JsonFormat
jackson:
time-zone: GMT+8
date-format: yyyy-MM-dd HH:mm:ss
# 指定默认包含的熟悉NON_NULL表示只序列化非空属性
default-property-inclusion: non_null
# 配置文件上传大小限制
servlet:
multipart:
# 单个文件最大大小
max-file-size: 1024MB
# 多个文件总大小
max-request-size: 2048MB
datasource:
url: jdbc:postgresql://192.168.109.102:5432/das
username: das
password: qwaszx12
# # redis相关配置
data:
redis:
host: 192.168.109.195
database: 0
port: 6379
password:
client-type: lettuce
# 配置 xml 文件所在位置 配置全局的 主键策略,默认为 ASSIGN_ID 默认为 【雪花算法】 , auto 自增
mybatis-plus:
mapper-locations: classpath*:/mapper/**/*.xml
# 搜索指定包别名
typeAliasesPackage: com.das.**.entity
global-config:
# 关闭MP3.0自带的banner
banner: false
db-config:
id-type: ASSIGN_ID
# 逻辑删除
logic-not-delete-value: 0
logic-delete-value: 1
#字段策略
insert-strategy: not_null
update-strategy: not_null
where-strategy: not_empty
#驼峰下划线转换
table-underline: true
# 开启驼峰命名 默认开启驼峰命名
# mybatis-plus配置控制台打印完整带参数SQL语句
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# 验证码相关
captcha:
enabled: true
verify-type: calculate
expire: 120
das:
aes:
key: b6967ee87b86d85a
logging:
level:
com:
das: DEBUG
tdengine:
password: taosdata
url: jdbc:TAOS-RS://192.168.109.160:6041/das
username: root