From 971d644ccfdb0c654bc4c5ea4f00bfa7746a54d9 Mon Sep 17 00:00:00 2001 From: wangbing Date: Tue, 23 Apr 2019 23:16:21 +0800 Subject: [PATCH] index --- .../java/action/GlobalController.ftl | 5 +-- .../resources/templates/screen/index.ftl | 45 ++++++++++++++++++- 2 files changed, 45 insertions(+), 5 deletions(-) diff --git a/src/main/resources/modules/SpringBoot/java/action/GlobalController.ftl b/src/main/resources/modules/SpringBoot/java/action/GlobalController.ftl index 402fe2b8..9d71d1dd 100644 --- a/src/main/resources/modules/SpringBoot/java/action/GlobalController.ftl +++ b/src/main/resources/modules/SpringBoot/java/action/GlobalController.ftl @@ -89,9 +89,8 @@ public class GlobalController implements ErrorController { } @RequestMapping("/") - public String home(HttpServletRequest request) { - String contextPath = request.getContextPath(); - return "forward:" + contextPath+ homePage; + public String home() { + return "forward:" + homePage; } /** diff --git a/src/main/resources/modules/SpringBoot/resources/templates/screen/index.ftl b/src/main/resources/modules/SpringBoot/resources/templates/screen/index.ftl index c1191ce0..b168610a 100644 --- a/src/main/resources/modules/SpringBoot/resources/templates/screen/index.ftl +++ b/src/main/resources/modules/SpringBoot/resources/templates/screen/index.ftl @@ -78,8 +78,49 @@