¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.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.ruoyi.common.config.RuoYiConfig;
|
| | | import com.ruoyi.common.utils.StringUtils;
|
| | |
|
| | | /**
|
| | | * é¦é¡µ
|
| | | *
|
| | | * @author ruoyi
|
| | | */
|
| | | @RestController
|
| | | public class SysIndexController
|
| | | {
|
| | | /** ç³»ç»åºç¡é
ç½® */
|
| | | @Autowired
|
| | | private RuoYiConfig ruoyiConfig;
|
| | |
|
| | | /**
|
| | | * 访é®é¦é¡µï¼æç¤ºè¯
|
| | | */
|
| | | @RequestMapping("/")
|
| | | public String index()
|
| | | {
|
| | | return StringUtils.format("欢è¿ä½¿ç¨{}åå°ç®¡çæ¡æ¶ï¼å½åçæ¬ï¼v{}ï¼è¯·éè¿å端å°å访é®ã", ruoyiConfig.getName(), ruoyiConfig.getVersion());
|
| | | }
|
| | | }
|