Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
毛树良
/
VVAS-DataCenter-DBWriter
Go to a project
Project
Repository
Merge Requests
0
Pipelines
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 700ecbaf
authored
Aug 23, 2025
by
wenshuaiying
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加版本号
1 parent
cf909009
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
src/main/java/com/viontech/keliu/controller/VersionController.java
src/main/java/com/viontech/keliu/controller/VersionController.java
0 → 100644
View file @
700ecba
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
;
}
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment