lige
2023-11-22 e5248157af311961bee52db474c2ee8abb741843
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.ltkj.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.ltkj.common.config.ltkjConfig;
import com.ltkj.common.utils.StringUtils;
 
/**
 * 首页
 *
 * @author ltkj
 */
@RestController
public class SysIndexController {
    /**
     * 系统基础配置
     */
    @Autowired
    private ltkjConfig ltkjConfig;
 
    /**
     * 访问首页,提示语
     */
    @RequestMapping("/")
    public String index() {
        return StringUtils.format("欢迎使用{}后台管理框架,当前版本:v{},请通过前端地址访问。", ltkjConfig.getName(), ltkjConfig.getVersion());
    }
}