中国算力平台算力登记系统2.0
yanzhaofeige
2024-09-30 f21d302f4ccb816ca2d411544b5ff8bd4f9d4cac
commit | author | age
43dc29 1 package com.odcc.cpzidc.web.controller.system;
Y 2
3 import org.springframework.beans.factory.annotation.Autowired;
4 import org.springframework.web.bind.annotation.RequestMapping;
5 import org.springframework.web.bind.annotation.RestController;
f21d30 6 import com.odcc.cpzidc.common.config.CpzIdcConfig;
43dc29 7 import com.odcc.cpzidc.common.utils.StringUtils;
Y 8
9 /**
10  * 首页
11  *
12  * @author ruoyi
13  */
14 @RestController
15 public class SysIndexController
16 {
17     /** 系统基础配置 */
18     @Autowired
f21d30 19     private CpzIdcConfig ruoyiConfig;
43dc29 20
Y 21     /**
22      * 访问首页,提示语
23      */
24     @RequestMapping("/")
25     public String index()
26     {
27         return StringUtils.format("欢迎使用{}后台管理框架,当前版本:v{},请通过前端地址访问。", ruoyiConfig.getName(), ruoyiConfig.getVersion());
28     }
29 }