没有最详细的配置的,是需要用户自己配置的,下面是一个官方文档里面比较详细的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>
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。