카페 글 1382

<bean id="velocityConfig" class="org.springframework.web.servlet.view.velocity.VelocityConfigurer">
    <property name="resourceLoaderPath">
        <value>/</value>            
    </property>
    <property name="velocityProperties">
        <props>
            <prop key="input.encoding">euc-kr</prop>
            <prop key="output.encoding">euc-kr</prop> 
        </props>
    </property>        
</bean>

<bean id="viewResolver" class="org.springframework.web.servlet.view.velocity.VelocityViewResolver">
    <property name="cache" value="true"/>
    <property name="prefix" value=""/>
    <property name="suffix" value=".vm"/>
    <property name="contentType"><value>text/html; charset=euc-kr</value></property>
</bean>

viewResolver의 contentType에 대해 추가적인 셋팅을 해주어야 한다.

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-1) was last changed on 06-Apr-2006 09:45 by 이동국