懒羊羊
2024-01-31 e57a8990ae56f657a59c435a0613c5f7a8728003
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.jcdm.web.controller.system;
 
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.jcdm.common.config.MesConfig;
import com.jcdm.common.utils.StringUtils;
 
/**
 * 首页
 *
 * @author jc
 */
@RestController
public class SysIndexController
{
    /** 系统基础配置 */
    @Autowired
    private MesConfig mesConfig;
 
    /**
     * 访问首页,提示语
     */
    @RequestMapping("/")
    public String index()
    {
        return StringUtils.format("欢迎使用{}后台管理框架,当前版本:v{},请通过前端地址访问。", mesConfig.getName(), mesConfig.getVersion());
    }
}