From 2258acef4eef43bab070e43dd92c4a6d63e194bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E6=B2=90?= Date: Wed, 20 Jul 2022 12:24:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=A8=A1=E5=9D=97=EF=BC=8C?= =?UTF-8?q?=E7=94=A8=E4=BA=8E=E5=BC=80=E5=8F=91=E6=96=B0=E4=B8=9A=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fast-boot-new/pom.xml | 19 +++++++++++++++ .../net/maku/module/controller/TestController.java | 28 ++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 fast-boot-new/pom.xml create mode 100644 fast-boot-new/src/main/java/net/maku/module/controller/TestController.java diff --git a/fast-boot-new/pom.xml b/fast-boot-new/pom.xml new file mode 100644 index 0000000..3a75a3c --- /dev/null +++ b/fast-boot-new/pom.xml @@ -0,0 +1,19 @@ + + + net.maku + fast-boot + 1.0.0 + + 4.0.0 + fast-boot-new + jar + + + + net.maku + fast-boot-framework + 1.0.0 + + + + \ No newline at end of file diff --git a/fast-boot-new/src/main/java/net/maku/module/controller/TestController.java b/fast-boot-new/src/main/java/net/maku/module/controller/TestController.java new file mode 100644 index 0000000..da10048 --- /dev/null +++ b/fast-boot-new/src/main/java/net/maku/module/controller/TestController.java @@ -0,0 +1,28 @@ +package net.maku.module.controller; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import lombok.AllArgsConstructor; +import net.maku.framework.common.utils.Result; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + * 新模块测试 + * + * @author 阿沐 babamu@126.com + */ +@RestController +@RequestMapping("new/test") +@Tag(name="新模块测试") +@AllArgsConstructor +public class TestController { + + @GetMapping() + @Operation(summary = "测试接口") + public Result test(){ + + return Result.ok("测试数据"); + } +}