| | |
| | | package com.ruoyi.project.system.controller;
|
| | |
|
| | | import lombok.AllArgsConstructor;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | | import org.springframework.web.bind.annotation.RestController;
|
| | |
| | | * @author ruoyi
|
| | | */
|
| | | @RestController
|
| | | @AllArgsConstructor
|
| | | public class SysIndexController
|
| | | {
|
| | | /** 系统基础配置 */
|
| | | @Autowired
|
| | | private RuoYiConfig ruoyiConfig;
|
| | |
|
| | | /**
|
| | |
| | | @RequestMapping("/")
|
| | | public String index()
|
| | | {
|
| | | return StringUtils.format("欢迎使用RuoYi后台管理框架,当前版本:v{}", ruoyiConfig.getVersion());
|
| | | return StringUtils.format("欢迎使用{}后台管理框架,当前版本:v{},请通过前端地址访问。", ruoyiConfig.getName(), ruoyiConfig.getVersion());
|
| | | }
|
| | | }
|