-
-
Notifications
You must be signed in to change notification settings - Fork 612
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
30b06e0
commit 8dee57f
Showing
2 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/main/java/com/ruoyi/project/system/controller/SysIndexController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.ruoyi.project.system.controller; | ||
|
||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
import com.ruoyi.common.utils.StringUtils; | ||
import com.ruoyi.framework.config.RuoYiConfig; | ||
|
||
/** | ||
* 首页 | ||
* | ||
* @author ruoyi | ||
*/ | ||
@RestController | ||
public class SysIndexController | ||
{ | ||
/** 系统基础配置 */ | ||
@Autowired | ||
private RuoYiConfig ruoyiConfig; | ||
|
||
/** | ||
* 访问首页,提示语 | ||
*/ | ||
@RequestMapping("/") | ||
public String index() | ||
{ | ||
return StringUtils.format("欢迎使用RuoYi后台管理框架,当前版本:v{}", ruoyiConfig.getVersion()); | ||
} | ||
} |