中国算力平台算力登记系统2.0
YZFG
2024-09-30 43dc2996fd2033991539ed35a0429238829a5417
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;
6 import com.odcc.cpzidc.common.config.RuoYiConfig;
7 import com.odcc.cpzidc.common.utils.StringUtils;
8
9 /**
10  * 首页
11  *
12  * @author ruoyi
13  */
14 @RestController
15 public class SysIndexController
16 {
17     /** 系统基础配置 */
18     @Autowired
19     private RuoYiConfig ruoyiConfig;
20
21     /**
22      * 访问首页,提示语
23      */
24     @RequestMapping("/")
25     public String index()
26     {
27         return StringUtils.format("欢迎使用{}后台管理框架,当前版本:v{},请通过前端地址访问。", ruoyiConfig.getName(), ruoyiConfig.getVersion());
28     }
29 }