Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webx3中如何添加自定义velocity块指令? #27

Open
iamchenney opened this issue Dec 17, 2015 · 0 comments
Open

webx3中如何添加自定义velocity块指令? #27

iamchenney opened this issue Dec 17, 2015 · 0 comments

Comments

@iamchenney
Copy link

我添加了

<beans:bean id="velocityConfigurer" class="org.springframework.web.servlet.view.velocity.VelocityConfigurer">
        <!--<beans:property name="resourceLoaderPath" value="/velocity 模板目录/"/>-->
        <beans:property name= "velocityProperties">
            <beans:props>
                <beans:prop key="input.encoding">utf-8</beans:prop>
                <beans:prop key="output.encoding">utf-8</beans:prop>
                <beans:prop key="userdirective">com.my.directive.Script</beans:prop>
            </beans:props>
        </beans:property>
    </beans:bean>

但是vm依然解析不了#script()
webx3中该如何添加自定义的velocity块指令呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant