From fbc49f024878beda0cf464c606a06c8bce5a572f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E6=96=87=E8=B1=AA?= <980287353@qq.com> Date: Mon, 15 May 2023 10:36:40 +0800 Subject: [PATCH] =?UTF-8?q?test=EF=BC=9A=E6=B5=8B=E8=AF=95=E9=87=8D?= =?UTF-8?q?=E5=AE=9A=E5=90=91=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../demo/controller/RedirectController.java | 19 +++++++++++++++++++ .../demo/controller/TestController.java | 3 +-- .../resources/static/mobile/0.0.13/index.html | 3 +++ 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 springboot-ademo/src/main/java/com/tiesheng/demo/controller/RedirectController.java diff --git a/springboot-ademo/src/main/java/com/tiesheng/demo/controller/RedirectController.java b/springboot-ademo/src/main/java/com/tiesheng/demo/controller/RedirectController.java new file mode 100644 index 0000000..f113087 --- /dev/null +++ b/springboot-ademo/src/main/java/com/tiesheng/demo/controller/RedirectController.java @@ -0,0 +1,19 @@ +package com.tiesheng.demo.controller; + +import com.tiesheng.annotation.token.TokenIgnore; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.GetMapping; + +/** + * @author hao + */ +@Controller +public class RedirectController { + + @GetMapping("/return") + @TokenIgnore + public String redirect() { + return "mobile/0.0.13/index.html"; + } + +} diff --git a/springboot-ademo/src/main/java/com/tiesheng/demo/controller/TestController.java b/springboot-ademo/src/main/java/com/tiesheng/demo/controller/TestController.java index 2b6f290..c8a26e3 100644 --- a/springboot-ademo/src/main/java/com/tiesheng/demo/controller/TestController.java +++ b/springboot-ademo/src/main/java/com/tiesheng/demo/controller/TestController.java @@ -25,6 +25,7 @@ import com.tiesheng.util.config.Ip2regionConfig; import com.tiesheng.util.pojos.ApiResp; import com.tiesheng.util.pojos.FileUploadPath; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @@ -58,9 +59,7 @@ public class TestController { @RequestMapping("/index") public ApiResp index() { - dbBackupConfig.dbBackup(); - return ApiResp.respOK("hello world"); } diff --git a/springboot-ademo/src/main/resources/static/mobile/0.0.13/index.html b/springboot-ademo/src/main/resources/static/mobile/0.0.13/index.html index 4518b06..4dcdb44 100644 --- a/springboot-ademo/src/main/resources/static/mobile/0.0.13/index.html +++ b/springboot-ademo/src/main/resources/static/mobile/0.0.13/index.html @@ -12,5 +12,8 @@ + +Hello World 0.0.13 +