Commit 700ecbaf by wenshuaiying

添加版本号

1 parent cf909009
package com.viontech.keliu.controller;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.HashMap;
import java.util.Map;
/**
* @author vion
* @since 2025/6/30
*/
@RestController
@Slf4j
public class VersionController {
@GetMapping("/version")
public Map<String, Object> getVersion() {
Map<String, Object> versionInfo = new HashMap<>();
try {
String version = "V6.9.5.r1.20250823.Release";
versionInfo.put("version", version);
} catch (Exception e) {
versionInfo.put("error", "get version error");
log.error("获取版本信息失败", e);
}
return versionInfo;
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!