2025-06-27 10:23:57 +08:00
|
|
|
|
package com.fuyuanshen.web.controller;
|
2025-06-27 09:08:28 +08:00
|
|
|
|
|
|
|
|
|
|
import cn.dev33.satoken.annotation.SaIgnore;
|
|
|
|
|
|
import lombok.RequiredArgsConstructor;
|
2025-06-27 10:23:57 +08:00
|
|
|
|
import com.fuyuanshen.common.core.utils.SpringUtils;
|
|
|
|
|
|
import com.fuyuanshen.common.core.utils.StringUtils;
|
2025-06-27 09:08:28 +08:00
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 首页
|
|
|
|
|
|
*
|
|
|
|
|
|
* @author Lion Li
|
|
|
|
|
|
*/
|
|
|
|
|
|
@SaIgnore
|
|
|
|
|
|
@RequiredArgsConstructor
|
|
|
|
|
|
@RestController
|
|
|
|
|
|
public class IndexController {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 访问首页,提示语
|
|
|
|
|
|
*/
|
|
|
|
|
|
@GetMapping("/")
|
|
|
|
|
|
public String index() {
|
|
|
|
|
|
return StringUtils.format("欢迎使用{}后台管理框架,请通过前端地址访问。", SpringUtils.getApplicationName());
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|