fix : 발리데이터 오류 수정

main
이범준 2 years ago
parent 11f94305db
commit 7fb8577e6a

@ -34,7 +34,8 @@ public class XitFrameUtilController {
*/
@RequestMapping(value="validator", method={RequestMethod.GET, RequestMethod.POST})
public String validate() {
return "framework/util/validator"+TILES_TYPE.NONE.getVal();
return "util/validator";
}
/**

@ -19,11 +19,14 @@ public class ThymeleafViewResolverConfig {
public SpringResourceTemplateResolver templateResolver() {
SpringResourceTemplateResolver templateResolver = new SpringResourceTemplateResolver();
//templateResolver.setPrefix("classpath:/templates");
templateResolver.setPrefix("/WEB-INF/templates/thymeleaf");
templateResolver.setCharacterEncoding("UTF-8");
templateResolver.setSuffix(".html");
templateResolver.setCharacterEncoding("UTF-8");
templateResolver.setTemplateMode("HTML5");
templateResolver.setCacheable(false);
return templateResolver;
}
@ -33,7 +36,6 @@ public class ThymeleafViewResolverConfig {
templateEngine.setTemplateResolver(templateResolver());
templateEngine.setTemplateEngineMessageSource(messageSource);
templateEngine.addDialect(layoutDialect());
return templateEngine;
}
@ -48,6 +50,8 @@ public class ThymeleafViewResolverConfig {
ThymeleafViewResolver viewResolver = new ThymeleafViewResolver();
viewResolver.setTemplateEngine(templateEngine(messageSource));
viewResolver.setCharacterEncoding("UTF-8");
String[] viewNames = {"thymeleaf"};
viewResolver.setViewNames(viewNames);
viewResolver.setOrder(1);
return viewResolver;
}

@ -78,9 +78,6 @@
</bean>
-->
<!-- Annotation 을 사용하지 않는 경우에 대한 MVC 처리 설정 -->
<mvc:view-controller path="/cmmn/validator.do" view-name="cmmn/validator"/>
<bean id="contentNegotiatingViewResolver" class="org.springframework.web.servlet.view.ContentNegotiatingViewResolver">
<property name="order" value="0" />
<property name="contentNegotiationManager">

@ -1,3 +1,3 @@
<%@ page language="java" contentType="javascript/javascript" %>
<%@ page language="java" contentType="text/javascript" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<validator:javascript dynamicJavascript="false" staticJavascript="true"/>
Loading…
Cancel
Save