From cf0368614839d67873415cdfb976686411c04a77 Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Sat, 3 Jul 2021 19:56:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E5=8C=96=E4=BD=BF=E7=94=A8=EF=BC=8C?= =?UTF-8?q?=E6=8C=87=E5=AE=9A=E7=A7=AF=E6=9C=A8=E6=8A=A5=E8=A1=A8=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jimureport-demo/docker-compose.yml | 6 +++--- .../jmreport/controller/IndexController.java | 21 +++++++++++++++++++ 2 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 jimureport-samples/jimureport-demo/src/main/java/org/jeecg/modules/jmreport/controller/IndexController.java diff --git a/jimureport-samples/jimureport-demo/docker-compose.yml b/jimureport-samples/jimureport-demo/docker-compose.yml index d9f2b7d..ee848c2 100644 --- a/jimureport-samples/jimureport-demo/docker-compose.yml +++ b/jimureport-samples/jimureport-demo/docker-compose.yml @@ -17,11 +17,11 @@ services: ports: - 3307:3306 - jimureport-demo: + jimureport: build: context: . restart: always - container_name: jimureport-demo - image: jimureport-demo + container_name: jimureport + image: jimureport ports: - 8085:8085 \ No newline at end of file diff --git a/jimureport-samples/jimureport-demo/src/main/java/org/jeecg/modules/jmreport/controller/IndexController.java b/jimureport-samples/jimureport-demo/src/main/java/org/jeecg/modules/jmreport/controller/IndexController.java new file mode 100644 index 0000000..6da873b --- /dev/null +++ b/jimureport-samples/jimureport-demo/src/main/java/org/jeecg/modules/jmreport/controller/IndexController.java @@ -0,0 +1,21 @@ +package org.jeecg.modules.jmreport.controller; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.web.bind.annotation.GetMapping; + +/** + * 积木报表-设置默认首页跳转 + */ +@Controller +public class IndexController { + private Logger logger = LoggerFactory.getLogger(IndexController.class); + + @GetMapping("/") + public String index(Model model) { + model.addAttribute("name", "jimureport"); + return "jmreport/list"; // 视图重定向 - 跳转 + } +} \ No newline at end of file