Commit 9dfe2f6fdfdadd398890fe9a1bfde2036f2288e7

Authored by YunaiV
1 parent 44d7d623

【代码评审】IoT:OTA 的实现

yudao-server/src/main/resources/application-local.yaml
@@ -45,16 +45,16 @@ spring: @@ -45,16 +45,16 @@ spring:
45 primary: master 45 primary: master
46 datasource: 46 datasource:
47 master: 47 master:
48 - url: jdbc:mysql://chaojiniu.top:23306/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true # MySQL Connector/J 8.X 连接的示例  
49 - # url: jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro?useSSL=true&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai # MySQL Connector/J 5.X 连接的示例 48 + url: jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例
  49 + # url: jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro?useSSL=true&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true # MySQL Connector/J 5.X 连接的示例
50 # url: jdbc:postgresql://127.0.0.1:5432/ruoyi-vue-pro # PostgreSQL 连接的示例 50 # url: jdbc:postgresql://127.0.0.1:5432/ruoyi-vue-pro # PostgreSQL 连接的示例
51 # url: jdbc:oracle:thin:@127.0.0.1:1521:xe # Oracle 连接的示例 51 # url: jdbc:oracle:thin:@127.0.0.1:1521:xe # Oracle 连接的示例
52 # url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=ruoyi-vue-pro;SelectMethod=cursor;encrypt=false;rewriteBatchedStatements=true;useUnicode=true;characterEncoding=utf-8 # SQLServer 连接的示例 52 # url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=ruoyi-vue-pro;SelectMethod=cursor;encrypt=false;rewriteBatchedStatements=true;useUnicode=true;characterEncoding=utf-8 # SQLServer 连接的示例
53 # url: jdbc:dm://127.0.0.1:5236?schema=RUOYI_VUE_PRO # DM 连接的示例 53 # url: jdbc:dm://127.0.0.1:5236?schema=RUOYI_VUE_PRO # DM 连接的示例
54 # url: jdbc:kingbase8://127.0.0.1:54321/test # 人大金仓 KingbaseES 连接的示例 54 # url: jdbc:kingbase8://127.0.0.1:54321/test # 人大金仓 KingbaseES 连接的示例
55 # url: jdbc:postgresql://127.0.0.1:5432/postgres # OpenGauss 连接的示例 55 # url: jdbc:postgresql://127.0.0.1:5432/postgres # OpenGauss 连接的示例
56 - username: ruoyi-vue-pro  
57 - password: ruoyi-@h2ju02hebp 56 + username: root
  57 + password: 123456
58 # username: sa # SQL Server 连接的示例 58 # username: sa # SQL Server 连接的示例
59 # password: Yudao@2024 # SQL Server 连接的示例 59 # password: Yudao@2024 # SQL Server 连接的示例
60 # username: SYSDBA # DM 连接的示例 60 # username: SYSDBA # DM 连接的示例
@@ -63,11 +63,11 @@ spring: @@ -63,11 +63,11 @@ spring:
63 # password: Yudao@2024 # OpenGauss 连接的示例 63 # password: Yudao@2024 # OpenGauss 连接的示例
64 slave: # 模拟从库,可根据自己需要修改 64 slave: # 模拟从库,可根据自己需要修改
65 lazy: true # 开启懒加载,保证启动速度 65 lazy: true # 开启懒加载,保证启动速度
66 - url: jdbc:mysql://chaojiniu.top:23306/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true  
67 - username: ruoyi-vue-pro  
68 - password: ruoyi-@h2ju02hebp 66 + url: jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&rewriteBatchedStatements=true&nullCatalogMeansCurrent=true
  67 + username: root
  68 + password: 123456
69 tdengine: # IOT 数据库 69 tdengine: # IOT 数据库
70 - # lazy: true # 开启懒加载,保证启动速度 70 + lazy: true # 开启懒加载,保证启动速度
71 url: jdbc:TAOS-RS://chaojiniu.top:6041/ruoyi_vue_pro 71 url: jdbc:TAOS-RS://chaojiniu.top:6041/ruoyi_vue_pro
72 driver-class-name: com.taosdata.jdbc.rs.RestfulDriver 72 driver-class-name: com.taosdata.jdbc.rs.RestfulDriver
73 username: root 73 username: root
@@ -76,12 +76,11 @@ spring: @@ -76,12 +76,11 @@ spring:
76 validation-query: SELECT SERVER_STATUS() # TDengine 数据源的有效性检查 SQL 76 validation-query: SELECT SERVER_STATUS() # TDengine 数据源的有效性检查 SQL
77 77
78 # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优 78 # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
79 - data:  
80 - redis:  
81 - host: chaojiniu.top # 地址  
82 - port: 6379 # 端口  
83 - database: 15 # 数据库索引  
84 - password: fsknKD7UvQYZsyf2hXXn # 密码,建议生产环境开启 79 + redis:
  80 + host: 127.0.0.1 # 地址
  81 + port: 6379 # 端口
  82 + database: 0 # 数据库索引
  83 +# password: dev # 密码,建议生产环境开启
85 84
86 --- #################### 定时任务相关配置 #################### 85 --- #################### 定时任务相关配置 ####################
87 86
@@ -186,7 +185,6 @@ logging: @@ -186,7 +185,6 @@ logging:
186 cn.iocoder.yudao.module.iot.dal.tdengine: DEBUG 185 cn.iocoder.yudao.module.iot.dal.tdengine: DEBUG
187 cn.iocoder.yudao.module.ai.dal.mysql: debug 186 cn.iocoder.yudao.module.ai.dal.mysql: debug
188 org.springframework.context.support.PostProcessorRegistrationDelegate: ERROR # TODO 芋艿:先禁用,Spring Boot 3.X 存在部分错误的 WARN 提示 187 org.springframework.context.support.PostProcessorRegistrationDelegate: ERROR # TODO 芋艿:先禁用,Spring Boot 3.X 存在部分错误的 WARN 提示
189 - com.taosdata: DEBUG # TDengine 的日志级别  
190 188
191 debug: false 189 debug: false
192 190
@@ -266,7 +264,7 @@ justauth: @@ -266,7 +264,7 @@ justauth:
266 prefix: 'social_auth_state:' # 缓存前缀,目前只对 Redis 缓存生效,默认 JUSTAUTH::STATE:: 264 prefix: 'social_auth_state:' # 缓存前缀,目前只对 Redis 缓存生效,默认 JUSTAUTH::STATE::
267 timeout: 24h # 超时时长,目前只对 Redis 缓存生效,默认 3 分钟 265 timeout: 24h # 超时时长,目前只对 Redis 缓存生效,默认 3 分钟
268 266
269 ---- #################### iot相关配置 TODO 芋艿:再瞅瞅 #################### 267 +--- #################### iot相关配置 TODO 芋艿【IOT】:再瞅瞅 ####################
270 pf4j: 268 pf4j:
271 # pluginsDir: /tmp/ 269 # pluginsDir: /tmp/
272 pluginsDir: ../plugins 270 pluginsDir: ../plugins
273 \ No newline at end of file 271 \ No newline at end of file
yudao-server/src/main/resources/application.yaml
@@ -334,6 +334,6 @@ yudao: @@ -334,6 +334,6 @@ yudao:
334 customer: E77DF18BE109F454A5CD319E44BF5177 334 customer: E77DF18BE109F454A5CD319E44BF5177
335 335
336 debug: false 336 debug: false
337 -# 插件配置 337 +# 插件配置 TODO 芋艿:【IOT】需要处理下
338 pf4j: 338 pf4j:
339 pluginsDir: /Users/anhaohao/code/gitee/ruoyi-vue-pro/plugins # 插件目录 339 pluginsDir: /Users/anhaohao/code/gitee/ruoyi-vue-pro/plugins # 插件目录
340 \ No newline at end of file 340 \ No newline at end of file