teaservlet.properties

来自「java servlet编程源码」· PROPERTIES 代码 · 共 42 行

PROPERTIES
42
字号
# TeaServlet.properties

# Specify the location of Tea templates (the .tea files)
template.path = /tomcat/webapps/teatime/WEB-INF/templates

# Specify an optional path for where the system will write compiled 
# templates, as .class files
template.classes = /tomcat/webapps/teatime/WEB-INF/templateClasses

# Specify an optional default template to load if none is given
template.default = Index

# Specify the supporting applications to load into the TeaServlet system
applications {
    "System" {
        # The SystemApplication provides TeaServlet administration support
        class = com.go.teaservlet.AdminApplication
        init {
            # The security key for the Admin page
            admin.key = admin
            admin.value = true
        }
    }
    "Other" {
        class = MoreOnApplicationsLater
    }

    # For Example 14-8
    "ToolApp" {
        class = ToolApp
        init {
            toolsFile = /tomcat/webapps/teatime/WEB-INF/tools.xml
        }
    }
}

# Specify what application messages are printed to the log file
log.debug = true
log.info = true
log.warn = true
log.error = true

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?