From a13dc8843bbf54dacca27254000865a539a87231 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期三, 13 十一月 2024 09:15:55 +0800 Subject: [PATCH] 预测项调用问题修复 --- iailab-module-model/iailab-module-model-biz/src/main/resources/application.yml | 110 +++++++++++++++++++++++++++++++++++++++++++++--------- 1 files changed, 91 insertions(+), 19 deletions(-) diff --git a/iailab-module-model/iailab-module-model-biz/src/main/resources/application.yml b/iailab-module-model/iailab-module-model-biz/src/main/resources/application.yml index 99fe1a8..61cdbda 100644 --- a/iailab-module-model/iailab-module-model-biz/src/main/resources/application.yml +++ b/iailab-module-model/iailab-module-model-biz/src/main/resources/application.yml @@ -1,9 +1,24 @@ +--- #################### 注册中心 + 配置中心相关配置 #################### spring: application: - name: model-server + name: model-server profiles: - active: local + active: @profiles.active@ + + cloud: + nacos: + server-addr: @nacos.server@ # Nacos 服务器地址 + username: @nacos.username@ + password: @nacos.password@ + discovery: # 【配置中心】配置项 + namespace: @profiles.active@ + group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP + metadata: + version: @nacos.metadata.version@ # 服务实例的版本号,可用于灰度发布 + config: # 【注册中心】配置项 + namespace: @profiles.active@ + group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP main: allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。 @@ -43,7 +58,13 @@ logging: file: - name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径 + name: @log.path@/logs/${spring.application.name}.log # 日志文件名,全路径 + level: + org: + springframework: + boot: + autoconfigure: + logging: info --- #################### 接口文档配置 #################### @@ -54,7 +75,7 @@ swagger-ui: enabled: true # 2.1 是否开启 Swagger 文档的官方 UI 界面 path: /swagger-ui.html - default-flat-param-object: true # 参见 https://doc.xiaominfo.com/docs/faq/v4/knife4j-parameterobject-flat-param 文档 + default-flat-param-object: true knife4j: enable: true @@ -126,31 +147,82 @@ listener: missing-topics-fatal: false # 消费监听接口监听的主题不存在时,默认会报错。所以通过设置为 false ,解决报错 ---- #################### 定时任务相关配置 #################### - -xxl: - job: - executor: - appname: ${spring.application.name} # 执行器 AppName - logpath: ${user.home}/logs/xxl-job/${spring.application.name} # 执行器运行日志文件存储磁盘路径 - accessToken: default_token # 执行器通讯TOKEN - --- #################### 平台相关配置 #################### iailab: info: version: 1.0.0 - base-package: com.iailab.module + base-package: com.iailab.module.model web: admin-ui: - url: http://dashboard.iailab.iocoder.cn # Admin 管理后台 UI 的地址 + url: # Admin 管理后台 UI 的地址 swagger: - title: 模型 - description: 模型 + title: 模型管理 + description: 模型管理 version: ${iailab.info.version} base-package: ${iailab.info.base-package} tenant: # 多租户相关配置项 - enable: false + enable: true + ignore-tables: + - qrtz_blob_triggers + - qrtz_calendars + - qrtz_cron_triggers + - qrtz_fired_triggers + - qrtz_job_details + - qrtz_locks + - qrtz_paused_trigger_grps + - qrtz_scheduler_state + - qrtz_simple_triggers + - qrtz_simprop_triggers + - qrtz_triggers + - schedule_job + - schedule_job_log + - t_dm_module + - t_dm_module_item + - t_mm_item_output + - t_mm_item_result + - t_mm_item_type + - t_mm_model_arith_settings + - t_mm_model_param + - t_mm_model_resultstr + - t_mm_predict_item + - t_mm_predict_merge_item + - t_mm_predict_model + - t_mm_result_table + - t_mm_item_result_json + - t_mm_item_result_last_point + - t_mm_item_accuracy_rate + - t_mm_predict_alarm_config + - t_mm_predict_alarm_message + - t_mm_sequence_num + - t_st_schedule_scheme + - t_st_schedule_model + - t_st_schedule_model_param + - t_st_schedule_model_setting + - t_st_schedule_suggest + - t_st_schedule_record + - t_st_schedule_record_detail + - t_mpk_file + - t_mpk_generator_code_history + - t_mpk_method_setting + - t_mpk_model_method + - t_mpk_project + - t_mpk_project_model + - t_mpk_project_package_history + - t_mpk_project_package_history_model + - t_mpk_setting_select + - t_mpk_icon + - t_mpk_file_menu + - t_mpk_file_group + - t_chart_param + - t_chart + - t_mpk_pack + - t_mm_item_status + app: + app-key: model + app-secret: 85b0df7edc3df3611913df34ed695011 + core-host: 127.0.0.1 -debug: true \ No newline at end of file + +debug: true -- Gitblit v1.9.3