训练模型
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user