简化使用,指定积木报表默认首页

dependabot/maven/jimureport-example/org.xerial-sqlite-jdbc-3.41.2.2
zhangdaiscott 2021-07-03 19:56:34 +08:00
parent 415f739f93
commit cf03686148
2 changed files with 24 additions and 3 deletions

View File

@ -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

View File

@ -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"; // 视图重定向 - 跳转
}
}