refactor : 뷰템플릿 파일 위치 변경

main
이범준 2 years ago
parent b861b17b14
commit 2c0b6dd333

@ -761,7 +761,7 @@
<include>spring/service/cache/*.xml</include>
<include>sqlmapper/**/*</include>
<include>validator/**/*</include>
<include>templates/**/*</include>
<include>templates/thymeleaf/**/*</include>
</includes>
<filtering>true</filtering>
</resource>

@ -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");

@ -59,7 +59,7 @@
<bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles3.TilesConfigurer">
<property name="definitions">
<list>
<value>/WEB-INF/tiles/layout-tiles-defs.xml</value>
<value>/WEB-INF/templates/tiles/layout-tiles-defs.xml</value>
<!-- <value>/WEB-INF/freemaker/layout-freemaker-tiles-defs.xml</value>-->
</list>
</property>

Loading…
Cancel
Save