From 4fc9d7444b18919e1448f454e01c07f31903c7e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81=20de=20Oliveira?= Date: Thu, 10 Aug 2017 12:29:19 -0700 Subject: [PATCH] Even more simple --- .../java/io/wedeploy/example/WeDeployController.java | 9 ++------- src/main/resources/{templates => static}/layout.html | 0 2 files changed, 2 insertions(+), 7 deletions(-) rename src/main/resources/{templates => static}/layout.html (100%) diff --git a/src/main/java/io/wedeploy/example/WeDeployController.java b/src/main/java/io/wedeploy/example/WeDeployController.java index 506c60f..e6cf7fe 100755 --- a/src/main/java/io/wedeploy/example/WeDeployController.java +++ b/src/main/java/io/wedeploy/example/WeDeployController.java @@ -4,23 +4,18 @@ import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.servlet.ModelAndView; @Controller @EnableAutoConfiguration public class WeDeployController { - public WeDeployController() { - - } - public static void main(String[] args) { SpringApplication.run(WeDeployController.class, args); } @RequestMapping("/") - public ModelAndView hello() { - return new ModelAndView("layout"); + public String hello() { + return "layout.html"; } } \ No newline at end of file diff --git a/src/main/resources/templates/layout.html b/src/main/resources/static/layout.html similarity index 100% rename from src/main/resources/templates/layout.html rename to src/main/resources/static/layout.html