admin
2024-11-12 a6316ee0ab82a0f3fc2691f8b5ddbd79e1567086
提交 | 用户 | 时间
a6316e 1 package com.billion.web.controller.system;
A 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.billion.common.config.RuoYiConfig;
7 import com.billion.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 }