From 2c0b6dd333f1840a3aad4f0dd3f5e82287b2b8bf Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Mon, 24 Apr 2023 14:44:53 +0900 Subject: [PATCH] =?UTF-8?q?refactor=20:=20=EB=B7=B0=ED=85=9C=ED=94=8C?= =?UTF-8?q?=EB=A6=BF=20=ED=8C=8C=EC=9D=BC=20=EC=9C=84=EC=B9=98=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- .../xit/framework/core/config/ThymeleafViewResolverConfig.java | 2 +- src/main/resources/spring/mvc/mvc-resolver.xml | 2 +- .../WEB-INF/templates/{ => thymeleaf}/base/error/error.html | 0 .../WEB-INF/templates/{ => thymeleaf}/layout/cmm_body.html | 0 .../WEB-INF/templates/{ => thymeleaf}/layout/cmm_footer.html | 0 .../WEB-INF/templates/{ => thymeleaf}/layout/cmm_head.html | 0 .../WEB-INF/templates/{ => thymeleaf}/layout/cmm_header.html | 0 .../WEB-INF/templates/{ => thymeleaf}/layout/cmm_script.html | 0 .../WEB-INF/templates/{ => thymeleaf}/layout/cmm_style.html | 0 .../WEB-INF/templates/{ => thymeleaf}/layout/cmm_style__.html | 0 .../WEB-INF/templates/{ => thymeleaf}/layout/layout_biz.html | 0 .../WEB-INF/templates/{ => thymeleaf}/layout/layout_main.html | 0 src/main/webapp/WEB-INF/templates/{ => thymeleaf}/list.html | 0 .../webapp/WEB-INF/{ => templates}/tiles/layout-tiles-defs.xml | 0 15 files changed, 3 insertions(+), 3 deletions(-) rename src/main/webapp/WEB-INF/templates/{ => thymeleaf}/base/error/error.html (100%) rename src/main/webapp/WEB-INF/templates/{ => thymeleaf}/layout/cmm_body.html (100%) rename src/main/webapp/WEB-INF/templates/{ => thymeleaf}/layout/cmm_footer.html (100%) rename src/main/webapp/WEB-INF/templates/{ => thymeleaf}/layout/cmm_head.html (100%) rename src/main/webapp/WEB-INF/templates/{ => thymeleaf}/layout/cmm_header.html (100%) rename src/main/webapp/WEB-INF/templates/{ => thymeleaf}/layout/cmm_script.html (100%) rename src/main/webapp/WEB-INF/templates/{ => thymeleaf}/layout/cmm_style.html (100%) rename src/main/webapp/WEB-INF/templates/{ => thymeleaf}/layout/cmm_style__.html (100%) rename src/main/webapp/WEB-INF/templates/{ => thymeleaf}/layout/layout_biz.html (100%) rename src/main/webapp/WEB-INF/templates/{ => thymeleaf}/layout/layout_main.html (100%) rename src/main/webapp/WEB-INF/templates/{ => thymeleaf}/list.html (100%) rename src/main/webapp/WEB-INF/{ => templates}/tiles/layout-tiles-defs.xml (100%) diff --git a/pom.xml b/pom.xml index 4872d3e8..fe481fb6 100644 --- a/pom.xml +++ b/pom.xml @@ -761,7 +761,7 @@ spring/service/cache/*.xml sqlmapper/**/* validator/**/* - templates/**/* + templates/thymeleaf/**/* true diff --git a/src/main/java/kr/xit/framework/core/config/ThymeleafViewResolverConfig.java b/src/main/java/kr/xit/framework/core/config/ThymeleafViewResolverConfig.java index c81d13ef..e2ba2aab 100644 --- a/src/main/java/kr/xit/framework/core/config/ThymeleafViewResolverConfig.java +++ b/src/main/java/kr/xit/framework/core/config/ThymeleafViewResolverConfig.java @@ -19,7 +19,7 @@ public class ThymeleafViewResolverConfig { public SpringResourceTemplateResolver templateResolver() { SpringResourceTemplateResolver templateResolver = new SpringResourceTemplateResolver(); //templateResolver.setPrefix("classpath:/templates"); - templateResolver.setPrefix("/WEB-INF/templates/"); + templateResolver.setPrefix("/WEB-INF/templates/thymeleaf"); templateResolver.setCharacterEncoding("UTF-8"); templateResolver.setSuffix(".html"); templateResolver.setTemplateMode("HTML5"); diff --git a/src/main/resources/spring/mvc/mvc-resolver.xml b/src/main/resources/spring/mvc/mvc-resolver.xml index c25bfded..d84aef51 100644 --- a/src/main/resources/spring/mvc/mvc-resolver.xml +++ b/src/main/resources/spring/mvc/mvc-resolver.xml @@ -59,7 +59,7 @@ - /WEB-INF/tiles/layout-tiles-defs.xml + /WEB-INF/templates/tiles/layout-tiles-defs.xml diff --git a/src/main/webapp/WEB-INF/templates/base/error/error.html b/src/main/webapp/WEB-INF/templates/thymeleaf/base/error/error.html similarity index 100% rename from src/main/webapp/WEB-INF/templates/base/error/error.html rename to src/main/webapp/WEB-INF/templates/thymeleaf/base/error/error.html diff --git a/src/main/webapp/WEB-INF/templates/layout/cmm_body.html b/src/main/webapp/WEB-INF/templates/thymeleaf/layout/cmm_body.html similarity index 100% rename from src/main/webapp/WEB-INF/templates/layout/cmm_body.html rename to src/main/webapp/WEB-INF/templates/thymeleaf/layout/cmm_body.html diff --git a/src/main/webapp/WEB-INF/templates/layout/cmm_footer.html b/src/main/webapp/WEB-INF/templates/thymeleaf/layout/cmm_footer.html similarity index 100% rename from src/main/webapp/WEB-INF/templates/layout/cmm_footer.html rename to src/main/webapp/WEB-INF/templates/thymeleaf/layout/cmm_footer.html diff --git a/src/main/webapp/WEB-INF/templates/layout/cmm_head.html b/src/main/webapp/WEB-INF/templates/thymeleaf/layout/cmm_head.html similarity index 100% rename from src/main/webapp/WEB-INF/templates/layout/cmm_head.html rename to src/main/webapp/WEB-INF/templates/thymeleaf/layout/cmm_head.html diff --git a/src/main/webapp/WEB-INF/templates/layout/cmm_header.html b/src/main/webapp/WEB-INF/templates/thymeleaf/layout/cmm_header.html similarity index 100% rename from src/main/webapp/WEB-INF/templates/layout/cmm_header.html rename to src/main/webapp/WEB-INF/templates/thymeleaf/layout/cmm_header.html diff --git a/src/main/webapp/WEB-INF/templates/layout/cmm_script.html b/src/main/webapp/WEB-INF/templates/thymeleaf/layout/cmm_script.html similarity index 100% rename from src/main/webapp/WEB-INF/templates/layout/cmm_script.html rename to src/main/webapp/WEB-INF/templates/thymeleaf/layout/cmm_script.html diff --git a/src/main/webapp/WEB-INF/templates/layout/cmm_style.html b/src/main/webapp/WEB-INF/templates/thymeleaf/layout/cmm_style.html similarity index 100% rename from src/main/webapp/WEB-INF/templates/layout/cmm_style.html rename to src/main/webapp/WEB-INF/templates/thymeleaf/layout/cmm_style.html diff --git a/src/main/webapp/WEB-INF/templates/layout/cmm_style__.html b/src/main/webapp/WEB-INF/templates/thymeleaf/layout/cmm_style__.html similarity index 100% rename from src/main/webapp/WEB-INF/templates/layout/cmm_style__.html rename to src/main/webapp/WEB-INF/templates/thymeleaf/layout/cmm_style__.html diff --git a/src/main/webapp/WEB-INF/templates/layout/layout_biz.html b/src/main/webapp/WEB-INF/templates/thymeleaf/layout/layout_biz.html similarity index 100% rename from src/main/webapp/WEB-INF/templates/layout/layout_biz.html rename to src/main/webapp/WEB-INF/templates/thymeleaf/layout/layout_biz.html diff --git a/src/main/webapp/WEB-INF/templates/layout/layout_main.html b/src/main/webapp/WEB-INF/templates/thymeleaf/layout/layout_main.html similarity index 100% rename from src/main/webapp/WEB-INF/templates/layout/layout_main.html rename to src/main/webapp/WEB-INF/templates/thymeleaf/layout/layout_main.html diff --git a/src/main/webapp/WEB-INF/templates/list.html b/src/main/webapp/WEB-INF/templates/thymeleaf/list.html similarity index 100% rename from src/main/webapp/WEB-INF/templates/list.html rename to src/main/webapp/WEB-INF/templates/thymeleaf/list.html diff --git a/src/main/webapp/WEB-INF/tiles/layout-tiles-defs.xml b/src/main/webapp/WEB-INF/templates/tiles/layout-tiles-defs.xml similarity index 100% rename from src/main/webapp/WEB-INF/tiles/layout-tiles-defs.xml rename to src/main/webapp/WEB-INF/templates/tiles/layout-tiles-defs.xml