📄 fulcrum.properties
字号:
# Copyright 2004 The Apache Software Foundation
#
# Licensed 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.
#
# NOTE This is here to show what could be used - it is NOT currently used - all services are disabled.
#
#
#
# -------------------------------------------------------------------
#
# S E R V I C E S
#
# -------------------------------------------------------------------
# Classes for Turbine Services should be defined here.
# Format: services.[name].classname=[implementing class]
#
# To specify properties of a service use the following syntax:
# service.[name].[property]=[value]
#
# The order that these services is listed is important! The
# order that is stated here is the order in which the services
# will be initialized. Keep this is mind if you have services
# that depend on other services during initialization.
# -------------------------------------------------------------------
#services.FactoryService.classname=org.apache.fulcrum.factory.TurbineFactoryService
#services.PoolService.classname=org.apache.fulcrum.pool.TurbinePoolService
#services.MimeTypeService.classname=org.apache.fulcrum.mimetype.TurbineMimeTypeService
#services.SchedulerService.classname=org.apache.fulcrum.schedule.TurbineSchedulerService
#services.XmlRpcService.classname=org.apache.fulcrum.xmlrpc.TurbineXmlRpcService
#services.UploadService.classname=org.apache.fulcrum.upload.TurbineUploadService
#services.SecurityService.classname=org.apache.fulcrum.security.impl.db.DBSecurityService
#services.DatabaseService.classname=org.apache.fulcrum.db.TurbineDatabaseService
#services.XSLTService.classname=org.apache.fulcrum.xslt.TurbineXSLTService
#services.BSFService.classname=org.apache.fulcrum.bsf.TurbineBSFService
#services.GlobalCacheService.classname=org.apache.fulcrum.cache.TurbineGlobalCacheService
#services.TemplateService.classname=org.apache.fulcrum.template.TurbineTemplateService
#services.LocalizationService.classname=org.apache.fulcrum.localization.TurbineLocalizationService
#services.IntakeService.classname=org.apache.fulcrum.intake.TurbineIntakeService
# Turn on the appropriate template service.
#services.VelocityService.classname=org.apache.turbine.services.velocity.TurbineVelocityService
# -------------------------------------------------------------------
#
# D A T A B A S E S E R V I C E
#
# -------------------------------------------------------------------
# These are your database settings. Look in the
# org.apache.turbine.util.db.pool.* packages for more information.
# The default driver for Turbine is for MySQL.
#
# The parameters to connect to the default database. You MUST
# configure these properly.
# -------------------------------------------------------------------
#services.DatabaseService.database.default=default
#services.DatabaseService.database.default.driver=org.hsql.jdbcDriver
#services.DatabaseService.database.default.url=jdbc:HypersonicSQL:${webappRoot}/WEB-INF/db/jetspeed
#services.DatabaseService.database.default.username=sa
#services.DatabaseService.database.default.password=
# The number of database connections to cache per ConnectionPool
# instance (specified per database).
services.DatabaseService.database.default.maxConnections=3
# The amount of time (in milliseconds) that database connections will be
# cached (specified per database).
#
# Default: one hour = 60 * 60 * 1000
services.DatabaseService.database.default.expiryTime=3600000
# The amount of time (in milliseconds) a connection request will have to wait
# before a time out occurs and an error is thrown.
#
# Default: ten seconds = 10 * 1000
services.DatabaseService.database.connectionWaitTimeout=10000
# The interval (in milliseconds) between which the PoolBrokerService logs
# the status of it's ConnectionPools.
#
# Default: No logging = 0 = 0 * 1000
services.DatabaseService.database.logInterval=0
# These are the supported JDBC drivers and their associated Turbine
# adapter. These properties are used by the DBFactory. You can add
# all the drivers you want here.
services.DatabaseService.database.adapter=DBMM
services.DatabaseService.database.adapter.DBMM=org.gjt.mm.mysql.Driver
# Determines if the quantity column of the IDBroker's id_table should
# be increased automatically if requests for ids reaches a high
# volume.
services.DatabaseService.idbroker.cleverquantity=true
# Determines if IDBroker should prefetch IDs or not. If set to false
# this property has the effect of shutting off the housekeeping thread
# that attempts to prefetch the id's. It also sets the # of id's grabbed
# per request to 1 regardless of the settings in the database.
# Default: true
services.DatabaseService.idbroker.prefetch=true
services.DatabaseService.earlyInit = true
# -------------------------------------------------------------------
#
# C A C H E S E R V I C E
#
# -------------------------------------------------------------------
# Interval at which the cache will be checked. The default is
# 5000ms or 5 seconds.
services.GlobalCacheService.cacheCheckFrequency = 5000
# -------------------------------------------------------------------
#
# B S F S E R V I C E
#
# -------------------------------------------------------------------
services.BSFService.scriptsDirectory = WEB-INF/scripts
services.BSFService.defaultExtension = py
# -------------------------------------------------------------------
#
# T E M P L A T E S E R V I C E
#
# -------------------------------------------------------------------
# There is no configuration anymore, just an abstract front
# end to underlying template engines like velocity, webmacro,
# and JSP.
# -------------------------------------------------------------------
#
# V E L O C I T Y S E R V I C E
#
# -------------------------------------------------------------------
# The location of Velocity configuration file, relative to webapp root
# These properties will override the default properties set by Velocity.
# You should specify the path to the templates directories as well as
# the path to the log file and they should also be relative to webapp root
services.VelocityService.template.extension=vm
services.VelocityService.default.page.template = /Default.vm
services.VelocityService.default.layout.template = /Default.vm
services.VelocityService.runtime.log=/logs/velocity.log
#services.VelocityService.input.encoding=UTF-8
services.VelocityService.velocimacro.library = GlobalMacros.vm
services.VelocityService.resource.loader = file
services.VelocityService.file.resource.loader.description = Velocity File Resource Loader
services.VelocityService.file.resource.loader.class = org.apache.velocity.runtime.resource.loader.FileResourceLoader
services.VelocityService.file.resource.loader.path = /templates/app
services.VelocityService.file.resource.loader.cache = false
services.VelocityService.file.resource.loader.modificationCheckInterval = 2
services.VelocityService.resource.loader = classpath
services.VelocityService.classpath.resource.loader.description = Velocity Classpath Resource Loader
services.VelocityService.classpath.resource.loader.class = org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
services.VelocityService.eventCartridge.classes =
services.VelocityService.earlyInit = true
# -------------------------------------------------------------------
#
# J S P S E R V I C E
#
# -------------------------------------------------------------------
services.JspService.template.extension=jsp
services.JspService.default.page.template = /Default.jsp
services.JspService.default.layout.template = /Default.jsp
services.JspService.templates = /templates/app
services.JspService.buffer.size = 8192
services.JspService.earlyInit = true
# -------------------------------------------------------------------
#
# U P L O A D S E R V I C E
#
# -------------------------------------------------------------------
# Whether the files should be automatically picked up by
# ParameterParser.
services.UploadService.automatic=true
#
# The directory where files will be temporarily stored.
#
services.UploadService.repository=.
#
# The maximum size of a request that will be processed.
#
services.UploadService.size.max=1048576
#
# The maximum size of a request that will have it's elements cached in
# memory by TurbineUploadService class.
#
services.UploadService.size.threshold=0
# -------------------------------------------------------------------
#
# L O C A L I Z A T I O N S E R V I C E
#
# -------------------------------------------------------------------
# Default ResourceBundle and language/country codes used by the
# TurbineLocalizationService.
#
services.LocalizationService.locale.default.bundle=MyBundle
services.LocalizationService.locale.default.language=en
services.LocalizationService.locale.default.country=US
#
# This will set the charset= portion of the ContentType: header.
# Leave commented out unless you want to return stuff as a different
# charset.
#
# services.LocalizationService.locale.default.charset=
# -------------------------------------------------------------------
#
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -