开发者社区> 问答> 正文

tool.xml文件的配置:报错

@VincentJiang 你好,想跟你请教个问题:你那边有tool.xml文件的详细配置吗?这真心的不知道。

展开
收起
kun坤 2020-06-14 06:58:31 473 0
1 条回答
写回答
取消 提交回答
  • 没有最详细的配置的,是需要用户自己配置的,下面是一个官方文档里面比较详细的tools.xml:

    <?xml version="1.0"?>

    <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -->

    <tools> <data key="author">Nathan Bubna</data> <toolbox scope="request"> <tool class="LayoutLinkTool"/> <tool class="MySearchTool"/> <tool key="pager" createSession="true"/> <tool key="text" bundles="resources,otherStuff"/> <tool key="params" locale="en_US"/> </toolbox>

    <toolbox scope="session" locale="en_US"> <tool class="org.apache.velocity.tools.view.BrowserTool" languagesFilter="en"/> </toolbox>

    <toolbox scope="application"> <tool key="date" format="yyyy-MM-dd" depth="2" skip="month"/> <tool key="convert" dateFormat="yyyy-MM-dd"/> <tool key="number" format="#0.0"/> <tool key="xml" file="file.xml" safeMode="false"/> </toolbox> </tools>

    2020-06-14 06:58:38
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关课程

更多

相关电子书

更多
Sparklint a Tool for Identifyi 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载