您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

如何正确设定装载机速度路径

如何正确设定装载机速度路径

如spring 文档中所示,您可以尝试以下操作:

<bean id="veLocityEngine" class="org.springframework.ui.veLocity.VeLocityEnginefactorybean">
  <property name="veLocityProperties">
    <props>
      <prop key="resource.loader">file</prop>
      <prop key="file.resource.loader.class">
        org.apache.veLocity.runtime.resource.loader.FileResourceLoader
      </prop>
      <prop key="file.resource.loader.path">${webapp.root}/WEB-INF/veLocity</prop>
      <prop key="file.resource.loader.cache">false</prop>
    </props>
  </property>
</bean>

或者,您可以在中声明这些属性veLocity.properties并指定

<bean id="veLocityEngine" class="org.springframework.ui.veLocity.VeLocityEnginefactorybean">
  <property name="configLocation" value="/WEB-INF/veLocity.properties"/>
</bean>
其他 2022/1/1 18:19:28 有371人围观

撰写回答


你尚未登录,登录后可以

和开发者交流问题的细节

关注并接收问题和回答的更新提醒

参与内容的编辑和改进,让解决方法与时俱进

请先登录

推荐问题


联系我
置顶