训练模型

This commit is contained in:
2025-10-21 16:34:28 +08:00
parent 51fd32c42d
commit 4668f0b1f0
33 changed files with 1319 additions and 57 deletions

View File

@@ -126,7 +126,13 @@ public class Constants {
* 仿真参数库文件夹
*/
@Schema(description = "仿真参数库文件夹",example = "4")
SIMULATION_PARAMETER_DIR("simulationParameter",4);
SIMULATION_PARAMETER_DIR("simulationParameter",4),
/**
* 训练模型文件夹
*/
@Schema(description = "训练模型文件",example = "5")
TRAIN_MODEL_DIR("trainModel",5);
String dirName;
int value;

View File

@@ -24,6 +24,6 @@ public class GlobalExceptionHandler {
public Object handleAllException(Exception e) {
log.error("系统异常: {}", e.getMessage(), e); // 记录完整异常堆栈
// 返回通用错误信息,避免暴露敏感信息给前端
return new SdmResponse<>(ResultCode.FAILED.getCode(), "系统繁忙,请稍后再试");
return new SdmResponse<>(ResultCode.FAILED.getCode(), e.getMessage());
}
}