From b5539b634cc6e50e5deb5556cbe58d1e318d2c95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E6=B2=90?= Date: Thu, 27 Oct 2022 14:01:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AC=A2=E8=BF=8E=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../net/maku/system/controller/IndexController.java | 18 ++++++++++++++++++ maku-framework/src/main/resources/auth.yml | 3 ++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 maku-boot-system/src/main/java/net/maku/system/controller/IndexController.java diff --git a/maku-boot-system/src/main/java/net/maku/system/controller/IndexController.java b/maku-boot-system/src/main/java/net/maku/system/controller/IndexController.java new file mode 100644 index 0000000..69dece4 --- /dev/null +++ b/maku-boot-system/src/main/java/net/maku/system/controller/IndexController.java @@ -0,0 +1,18 @@ +package net.maku.system.controller; + +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + * 首页 欢迎信息 + * + * @author 阿沐 babamu@126.com + */ +@RestController +public class IndexController { + + @GetMapping("/") + public String index() { + return "您好,项目已启动,预您使用愉快!"; + } +} diff --git a/maku-framework/src/main/resources/auth.yml b/maku-framework/src/main/resources/auth.yml index bb6867f..12dbb99 100644 --- a/maku-framework/src/main/resources/auth.yml +++ b/maku-framework/src/main/resources/auth.yml @@ -7,4 +7,5 @@ auth: - /swagger-resources/** - /swagger-ui.html - /swagger-ui/** - - /doc.html \ No newline at end of file + - /doc.html + - / \ No newline at end of file