完善项目

This commit is contained in:
xuqiuyun
2025-10-13 17:19:47 +08:00
parent 7788419b45
commit 1891e2c701
440 changed files with 3751 additions and 2051 deletions

View File

@@ -1,114 +0,0 @@
spring:
# redis 配置
redis:
# 地址
host: 129.211.213.226
# 端口默认为6379
port: 6379
# 数据库索引
database: 11
# 密码
password: Aiotagro@741
# 连接超时时间
timeout: 10s
lettuce:
pool:
# 连接池中的最小空闲连接
min-idle: 0
# 连接池中的最大空闲连接
max-idle: 8
# 连接池的最大数据库连接数
max-active: 8
# #连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait: -1ms
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://129.211.213.226:3306/cattletrade?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root
password: Aiotagro@741
sa-token:
# token 名称(同时也是 cookie 名称)
token-name: Authorization
# token 有效期(单位:秒) 默认30天-1 代表永久有效
timeout: 259200
# token 最低活跃频率(单位:秒),如果 token 超过此时间没有访问系统就会被冻结,默认-1 代表不限制,永不冻结
active-timeout: 86400
# 是否允许同一账号多地同时登录 (为 true 时允许一起登录, 为 false 时新登录挤掉旧登录)
is-concurrent: false
# 在多人登录同一账号时,是否共用一个 token (为 true 时所有登录共用一个 token, 为 false 时每次登录新建一个 token
is-share: false
# token 风格默认可取值uuid、simple-uuid、random-32、random-64、random-128、tik
token-style: random-64
# 是否输出操作日志
is-log: true
# 同一账号最大登录数量
max-login-count: 1
# 是否尝试从请求体里读取token
is-read-body: false
# 是否尝试从请求头读取token
is-read-header: true
# 是否尝试从cookie读取token为false时登录也不会再往前端注入cookie
is-read-cookie: false
# 是否在登录后将 Token 写入到响应头
is-write-header: true
# 自动续签
auto-renew: true
token-prefix: Bearer
# 是否在初始化配置时打印版本
is-print: false
# 是否打印操作日志
is-color-log: true
# jwt秘钥
jwt-secret-key: aiotagrocommonpayplatformsystem
remote:
baseUrl: http://127.0.0.1:8080/
pay-platform:
baseUrl: https://demo-pay.aiotagro.com
callbackUrl: https://cattletrack-test.aiotagro.com
retrofit:
# 日志打印配置
log:
# 启用日志打印
enable: true
# 日志打印拦截器
logging-interceptor: com.github.lianjiatech.retrofit.spring.boot.interceptor.DefaultLoggingInterceptor
# 全局日志打印级别
global-log-level: info
# 全局日志打印策略
global-log-strategy: body
# 全局连接超时时间
global-connect-timeout-ms: 3000
# 全局读取超时时间
global-read-timeout-ms: 3000
# 全局写入超时时间
global-write-timeout-ms: 35000
# 全局完整调用超时时间
global-call-timeout-ms: 0
xxl:
job:
admin:
addresses: https://demo-xxljob.aiotagro.com #测试地址生产地址换成https://xxl-job-admin.aiotagro.com/
accessToken: default #和xxl-job服务里的accessToken保持一致 此项目前可以保持默认
executor:
# 执行器名称跟管理平台设置的Appname保持一致
appname: trade-cattle
#ip: 10.123.1.53 端口要保证全局唯一
port: 9620
# 日志地址
logpath: /data/applogs/xxl-job/jobhandler
# 日志保存时间
logretentiondays: 30
address:
ip:
# 日志配置
logging:
level:
com.aiotagro: debug
org.springframework: info

View File

@@ -1,113 +0,0 @@
spring:
# redis 配置
redis:
# 地址
host: 129.211.213.226
# 端口默认为6379
port: 6379
# 数据库索引
database: 11
# 密码
password: Aiotagro@741
# 连接超时时间
timeout: 10s
lettuce:
pool:
# 连接池中的最小空闲连接
min-idle: 0
# 连接池中的最大空闲连接
max-idle: 8
# 连接池的最大数据库连接数
max-active: 8
# #连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait: -1ms
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://129.211.213.226:3306/cattletrade?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root
password: Aiotagro@741
sa-token:
# token 名称(同时也是 cookie 名称)
token-name: Authorization
# token 有效期(单位:秒) 默认30天-1 代表永久有效
timeout: 259200
# token 最低活跃频率(单位:秒),如果 token 超过此时间没有访问系统就会被冻结,默认-1 代表不限制,永不冻结
active-timeout: 86400
# 是否允许同一账号多地同时登录 (为 true 时允许一起登录, 为 false 时新登录挤掉旧登录)
is-concurrent: false
# 在多人登录同一账号时,是否共用一个 token (为 true 时所有登录共用一个 token, 为 false 时每次登录新建一个 token
is-share: false
# token 风格默认可取值uuid、simple-uuid、random-32、random-64、random-128、tik
token-style: random-64
# 是否输出操作日志
is-log: true
# 同一账号最大登录数量
max-login-count: 1
# 是否尝试从请求体里读取token
is-read-body: false
# 是否尝试从请求头读取token
is-read-header: true
# 是否尝试从cookie读取token为false时登录也不会再往前端注入cookie
is-read-cookie: false
# 是否在登录后将 Token 写入到响应头
is-write-header: true
# 自动续签
auto-renew: true
token-prefix: Bearer
# 是否在初始化配置时打印版本
is-print: false
# 是否打印操作日志
is-color-log: true
# jwt秘钥
jwt-secret-key: aiotagrocommonpayplatformsystem
remote:
baseUrl: http://127.0.0.1:8080/
pay-platform:
baseUrl: https://demo-pay.aiotagro.com
callbackUrl: https://cattletrack-test.aiotagro.com
retrofit:
# 日志打印配置
log:
# 启用日志打印
enable: true
# 日志打印拦截器
logging-interceptor: com.github.lianjiatech.retrofit.spring.boot.interceptor.DefaultLoggingInterceptor
# 全局日志打印级别
global-log-level: info
# 全局日志打印策略
global-log-strategy: body
# 全局连接超时时间
global-connect-timeout-ms: 3000
# 全局读取超时时间
global-read-timeout-ms: 3000
# 全局写入超时时间
global-write-timeout-ms: 35000
# 全局完整调用超时时间
global-call-timeout-ms: 0
xxl:
job:
admin:
addresses: https://demo-xxljob.aiotagro.com #测试地址生产地址换成https://xxl-job-admin.aiotagro.com/
accessToken: default #和xxl-job服务里的accessToken保持一致 此项目前可以保持默认
executor:
# 执行器名称跟管理平台设置的Appname保持一致
appname: trade-cattle
#ip: 10.123.1.53 端口要保证全局唯一
port: 9620
# 日志地址
logpath: /data/applogs/xxl-job/jobhandler
# 日志保存时间
logretentiondays: 30
address:
ip:
# 日志配置
logging:
level:
com.aiotagro: debug
org.springframework: info

View File

@@ -1,112 +0,0 @@
spring:
# redis 配置
redis:
# 地址
host: 127.0.0.1
# 端口默认为6379
port: 6379
# 数据库索引
database: 11
# 密码
password: Aiotagro@741
# 连接超时时间
timeout: 10s
lettuce:
pool:
# 连接池中的最小空闲连接
min-idle: 0
# 连接池中的最大空闲连接
max-idle: 8
# 连接池的最大数据库连接数
max-active: 8
# #连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait: -1ms
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://mysql57-iot.aiotagro.com:60026/cattletrade?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: iot-plateform
password: 3qJ7$bV%N9mE
sa-token:
# token 名称(同时也是 cookie 名称)
token-name: Authorization
# token 有效期(单位:秒) 默认30天-1 代表永久有效
timeout: 259200
# token 最低活跃频率(单位:秒),如果 token 超过此时间没有访问系统就会被冻结,默认-1 代表不限制,永不冻结
active-timeout: 86400
# 是否允许同一账号多地同时登录 (为 true 时允许一起登录, 为 false 时新登录挤掉旧登录)
is-concurrent: true
# 在多人登录同一账号时,是否共用一个 token (为 true 时所有登录共用一个 token, 为 false 时每次登录新建一个 token
is-share: false
# token 风格默认可取值uuid、simple-uuid、random-32、random-64、random-128、tik
token-style: random-64
# 是否输出操作日志
is-log: true
# 同一账号最大登录数量
max-login-count: 1
# 是否尝试从请求体里读取token
is-read-body: false
# 是否尝试从请求头读取token
is-read-header: true
# 是否尝试从cookie读取token为false时登录也不会再往前端注入cookie
is-read-cookie: false
# 是否在登录后将 Token 写入到响应头
is-write-header: true
# 自动续签
auto-renew: true
token-prefix: Bearer
# 是否在初始化配置时打印版本
is-print: false
# 是否打印操作日志
is-color-log: true
# jwt秘钥
jwt-secret-key: aiotagrocommonpayplatformsystem
remote:
baseUrl: http://127.0.0.1:8080/
pay-platform:
baseUrl: https://demo-pay.aiotagro.com
callbackUrl: https://cattletrack-test.aiotagro.com
retrofit:
# 日志打印配置
log:
# 启用日志打印
enable: true
# 日志打印拦截器
logging-interceptor: com.github.lianjiatech.retrofit.spring.boot.interceptor.DefaultLoggingInterceptor
# 全局日志打印级别
global-log-level: info
# 全局日志打印策略
global-log-strategy: body
# 全局连接超时时间
global-connect-timeout-ms: 3000
# 全局读取超时时间
global-read-timeout-ms: 3000
# 全局写入超时时间
global-write-timeout-ms: 35000
# 全局完整调用超时时间
global-call-timeout-ms: 0
xxl:
job:
admin:
addresses: https://xxl-job-admin.aiotagro.com/ #测试地址生产地址换成https://xxl-job-admin.aiotagro.com/
accessToken: default #和xxl-job服务里的accessToken保持一致 此项目前可以保持默认
executor:
# 执行器名称跟管理平台设置的Appname保持一致
appname: trade-cattle
#ip: 10.123.1.53 端口要保证全局唯一
port: 9620
# 日志地址
logpath: /data/applogs/xxl-job/jobhandler
# 日志保存时间
logretentiondays: 30
address:
ip:
# 日志配置
logging:
level:
com.aiotagro: debug
org.springframework: info

View File

@@ -1,109 +0,0 @@
server:
# 服务器的HTTP端口默认为8080
port: 16200
servlet:
# 应用的访问路径
context-path: /api
tomcat:
# tomcat的URI编码
uri-encoding: UTF-8
# 连接数满后的排队数默认为100
accept-count: 1000
threads:
# tomcat最大线程数默认为200
max: 800
# Tomcat启动初始化的线程数默认值10
min-spare: 100
spring:
profiles:
active: dev
# 文件上传
servlet:
multipart:
# 单个文件大小
max-file-size: 50MB
# 设置总上传的文件大小
max-request-size: 50MB
# 服务模块
devtools:
restart:
# 热部署开关
enabled: true
#设置热部署要监听的目录
additional-paths: src/main/java
# 解决项目自动重新编译后接口报404的问题
poll-interval: 3000
quiet-period: 1000
# MyBatis配置
#mybatis:
# # 搜索指定包别名
# type-aliases-package: com.aiotagro.payinfo.domain.mapper
# # 配置mapper的扫描找到所有的mapper.xml映射文件
# mapper-locations: classpath*:mapper/**/*Mapper.xml
# # 加载全局的配置文件
# config-location: classpath:mybatis/mybatis-config.xml
# mybatis-plus配置
mybatis-plus:
# 搜索指定包别名
typeAliasesPackage: com.aiotagro.payinfo.domain.mapper
# 配置mapper的扫描找到所有的mapper.xml映射文件
mapper-locations: classpath*:mapper/**/*Mapper.xml
# 加载全局的配置文件
configLocation: classpath:mybatis/mybatis-config.xml
global-config:
db-config:
logic-delete-field: del_flag
logic-delete-value: 1
logic-not-delete-value: 0
# PageHelper分页插件
pagehelper:
helper-dialect: mysql #设置数据库类型
reasonable: true #开启合理化:页码<=0 查询第一页,页码>=总页数查询最后一页
support-methods-arguments: true #支持通过 Mapper 接口参数来传递分页参数
params: count=countsql
aiot-lims:
#多租户配置
tenant:
enable: true
column: tenant_id
filterTables:
ignoreTables:
- pay_order
- pay_order_item
- sys_menu
- sys_tenant
- jbq_client_log
- jbq_server_log
- xq_client_log
- warning_log
- delivery_device
ignoreLoginNames:
- lpc
#短信相关配置
sms:
secret-id: AKIDcFj042ugFagXBcpmUxBAuQp32mHfrwqk
secret-key: sW7i9LI2YpsiLipiNp31lS4Tjrr5A0c0
end-point: sms.tencentcloudapi.com
appid: 1400915506
sign: 武汉爱农云联科技
template-id: 2175348
openapi:
url: http://api.aiotagro.com/api/business/xq/locationLog
iot:
url: http://aiot.aiotagro.com/iotPlateform/iotBusiness/sendCmd
wechat:
appid: wxae2b1a5da0a0a799
secret: 1f1a9e7146fd6a83d76eed76d80315f4

Some files were not shown because too many files have changed in this diff Show More