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

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

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

@ -19,7 +19,7 @@ public class ThymeleafViewResolverConfig {
public SpringResourceTemplateResolver templateResolver() { public SpringResourceTemplateResolver templateResolver() {
SpringResourceTemplateResolver templateResolver = new SpringResourceTemplateResolver(); SpringResourceTemplateResolver templateResolver = new SpringResourceTemplateResolver();
//templateResolver.setPrefix("classpath:/templates"); //templateResolver.setPrefix("classpath:/templates");
templateResolver.setPrefix("/WEB-INF/templates/"); templateResolver.setPrefix("/WEB-INF/templates/thymeleaf");
templateResolver.setCharacterEncoding("UTF-8"); templateResolver.setCharacterEncoding("UTF-8");
templateResolver.setSuffix(".html"); templateResolver.setSuffix(".html");
templateResolver.setTemplateMode("HTML5"); templateResolver.setTemplateMode("HTML5");

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

Loading…
Cancel
Save