<!-- Global JNDI resources Documentation at /docs/jndi-resources-howto.html --> <GlobalNamingResources> <!-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -->
<Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" pathname="conf/tomcat-users.xml" /> <!-- |- name:表示以后要查找的名称。通过此名称可以找到DataSource,此名称任意更换,但是程序中最终要查找的就是此名称, 为了不与其他的名称混淆,所以使用jdbc/oracle,现在配置的是一个jdbc的关于oracle的命名服务。 |- auth:由容器进行授权及管理,指的用户名和密码是否可以在容器上生效 |- type:此名称所代表的类型,现在为javax.sql.DataSource |- maxActive:表示一个数据库在此服务器上所能打开的最大连接数 |- maxIdle:表示一个数据库在此服务器上维持的最小连接数 |- maxWait:最大等待时间。10000毫秒 |- username:数据库连接的用户名 |- password:数据库连接的密码 |- driverClassName:数据库连接的驱动程序 |- url:数据库连接的地址 -->
# Maximum queue length for incoming connection requests when all possible request processing threads are in use. # 当所有可能的请求都在使用时,传入连接请求的最大队列长度。 server.tomcat.accept-count= # Buffer output such that it is only flushed periodically. # 是否定期更新刷新缓存输出。 server.tomcat.accesslog.buffered=true # Directory in which log files are created. Can be relative to the tomcat base dir or absolute. # 定义日志的输出目录 server.tomcat.accesslog.directory=logs # Enable access log. # 是否允许访问日志。 server.tomcat.accesslog.enabled=false # Date format to place in log file name. # 日志中日期的格式 server.tomcat.accesslog.file-date-format=.yyyy-MM-dd # Format pattern for access logs. # 访问日志的格式模式 server.tomcat.accesslog.pattern=common # Log file name prefix. # 日志文件名前缀。 server.tomcat.accesslog.prefix=access_log # Defer inclusion of the date stamp in the file name until rotate time. # 延迟在文件名中包含日期戳,直至到达。 server.tomcat.accesslog.rename-on-rotate=false # Set request attributes for IP address, Hostname, protocol and port used for the request. # 设置用于请求的IP地址,主机名,协议和端口的请求属性。 server.tomcat.accesslog.request-attributes-enabled=false # Enable access log rotation. # 是否启用访问日志轮询。 server.tomcat.accesslog.rotate=true # Log file name suffix. # 日志文件名后缀。 server.tomcat.accesslog.suffix=.log # Comma-separated list of additional patterns that match jars to ignore for TLD scanning. # 以逗号分隔的其他模式列表,这些模式匹配要忽略TLD扫描的jar。 server.tomcat.additional-tld-skip-patterns= # Delay in seconds between the invocation of backgroundProcess methods. # 调用backgroundProcess()方法之间的延迟时间。 server.tomcat.background-processor-delay=30 # Tomcat base directory. If not specified a temporary directory will be used. # Tomcat的根目录,若是未指定将使用临时目录。 server.tomcat.basedir= # regular expression matching trusted IP addresses. # 正则表达式匹配可信IP地址。 server.tomcat.max-connections= # Maximum number of connections that the server will accept and process at any given time. server.tomcat.internal-proxies=10\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}|\\ 192\\.168\\.\\d{1,3}\\.\\d{1,3}|\\ 169\\.254\\.\\d{1,3}\\.\\d{1,3}|\\ 127\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}|\\ 172\\.1[6-9]{1}\\.\\d{1,3}\\.\\d{1,3}|\\ 172\\.2[0-9]{1}\\.\\d{1,3}\\.\\d{1,3}|\\ 172\\.3[0-1]{1}\\.\\d{1,3}\\.\\d{1,3} # Maximum size in bytes of the HTTP message header. # HTTP头部信息的最大大小(byte)。 server.tomcat.max-http-header-size=0 # Maximum size in bytes of the HTTP post content. # HTTP的POST请求内容最大大小(byte)。 server.tomcat.max-http-post-size=0 # Maximum amount of worker threads. # 最大工作线程数。 server.tomcat.max-threads=0 # Minimum amount of worker threads. # 最小工作线程数。 server.tomcat.min-spare-threads=0 # Name of the HTTP header used to override the original port value. # 覆盖原始端口值的HTTP头部的名称。 server.tomcat.port-header=X-Forwarded-Port # Header that holds the incoming protocol, usually named "X-Forwarded-Proto". # 保存传入协议的标头,通常命名为“X-Forwarded-Proto”。 server.tomcat.protocol-header= # Value of the protocol header that indicates that the incoming request uses SSL. # 协议标头的值,指示传入请求使用SSL。 server.tomcat.protocol-header-https-value=https # Whether requests to the context root should be redirected by appending a / to the path. # 是否来添加“/”用于重定向对上下文的请求。 server.tomcat.redirect-context-root= # Name of the http header from which the remote ip is extracted. For instance `X-FORWARDED-FOR` # 从中提取远程ip的http标头的名称。 server.tomcat.remote-ip-header= # Character encoding to use to decode the URI. # 解码URL的字符编码。 server.tomcat.uri-encoding=UTF-8
# Network address to which the server should bind to. # 服务器绑定的地址。 server.address= # Server HTTP port. # 服务器的端口。 server.port=8080 # Value to use for the Server response header (no header is sent if empty) # 用于服务器响应标头的值(如果为空,则不发送标头) server.use-forward-headers= # If X-Forwarded-* headers should be applied to the HttpRequest. server.server-header= # If response compression is enabled. # 启动响应压缩。 server.compression.enabled=false # List of user-agents to exclude from compression. # 从压缩中排除用户代理列表。 server.compression.excluded-user-agents= # Comma-separated list of MIME types that should be compressed. server.compression.mime-types= For instance `text/html,text/css,application/json` # Minimum response size that is required for compression to be performed. For instance 2048 server.compression.min-response-size= # Time in milliseconds that connectors will wait for another HTTP request before closing the connection. When not set, the connector's container-specific default will be used. Use a value of -1 to indicate no (i.e. infinite) timeout. # HTTP等待请求的时间。 server.connection-timeout= # Display name of the application. # 服务器应用名称。 server.display-name=application # Maximum size in bytes of the HTTP message header. # HTTP消息头的最大大小。 server.max-http-header-size=0
# Include the "exception" attribute. # 包含异常属性。 server.error.include-exception=false # When to include a "stacktrace" attribute. # 何时包含stacktrace属性。 server.error.include-stacktrace=never # Path of the error controller. # 异常控制类的路径 server.error.path=/error # Enable the default error page displayed in browsers in case of a server error. # 如果出现服务器错误,请启用浏览器中显示的默认错误页面。 server.error.whitelabel.enabled=true
# Number of acceptor threads to use. # 要使用的接受者线程数。 server.jetty.acceptors= # Append to log. server.jetty.accesslog.append=false # Timestamp format of the request log. server.jetty.accesslog.date-format=dd/MMM/yyyy:HH:mm:ss Z # Enable access log. # 附加访问日志。 server.jetty.accesslog.enabled=false # Enable extended NCSA format. # 启用扩展NCSA格式。 server.jetty.accesslog.extended-format=false # Date format to place in log file name. # 日期格式放在日志文件名中。 server.jetty.accesslog.file-date-format= # Log filename. If not specified, logs will be redirected to "System.err". # 日志名称。 server.jetty.accesslog.filename= # Locale of the request log. # 请求日志的区域设置。 server.jetty.accesslog.locale= # Enable logging of the request cookies. # 启用请求cookie的记录。 server.jetty.accesslog.log-cookies=false # Enable logging of request processing time. # 启用请求的时间记录。 server.jetty.accesslog.log-latency=false # Enable logging of the request hostname. # 启用请求的地址记录。 server.jetty.accesslog.log-server=false # Number of days before rotated log files are deleted. # 删除轮询日志文件的天数。 server.jetty.accesslog.retention-period=31 # Timezone of the request log. # 请求日志的时间格式。 server.jetty.accesslog.time-zone=GMT # Maximum size in bytes of the HTTP post or put content. # HTTP post或put内容的最大大小(以字节为单位)。 server.jetty.max-http-post-size=0 # Number of selector threads to use. # 要使用的选择者线程数。 server.jetty.selectors=
# Servlet context init parameters # Servlet上下文init参数 server.servlet.context-parameters.*= # Context path of the application. # 应用的路径。 server.servlet.context-path= # The class name of the JSP servlet. # JSP servelt的类名称。 server.servlet.jsp.class-name=org.apache.jasper.servlet.JspServlet # Init parameters used to configure the JSP servlet. # 配置JSP servlet的init参数。 server.servlet.jsp.init-parameters.*= # Whether or not the JSP servlet is registered. # 是否注册了JSP servlet。 server.servlet.jsp.registered=true # Path of the main dispatcher servlet. # 默认的匹配servlet路径。 server.servlet.path=/
# Comment for the session cookie. server.session.cookie.comment= # Domain for the session cookie. # 会话cookie的域名。 server.session.cookie.domain= # "HttpOnly" flag for the session cookie. server.session.cookie.http-only= # Maximum age of the session cookie in seconds. # 会话cookie的最大年龄 server.session.cookie.max-age= # Session cookie name. # 会话cookie的名称。 server.session.cookie.name= # Path of the session cookie. # 会话cookie的路径。 server.session.cookie.path= # "Secure" flag for the session cookie. server.session.cookie.secure= # Persist session data between restarts. # 重新启动之间保留会话数据。 server.session.persistent=false # Session repository filter order. server.session.servlet.filter-order=-2147483598 # Session repository filter dispatcher types. server.session.servlet.filter-dispatcher-types=ASYNC, ERROR, REQUEST # Directory used to store session data. # 存储会话cookie数据的文件地址 server.session.store-dir= # Session timeout in seconds. # 会话cookie过期时间。 server.session.timeout= # Session tracking modes (one or more of the following: "cookie", "url", "ssl"). server.session.tracking-modes=
# Supported SSL ciphers. # 支持的SSL密码。 server.ssl.ciphers= # Whether client authentication is wanted ("want") or needed ("need"). Requires a trust store. # 是否需要客户端身份验证(“想要”)或需要(“需要”)。 server.ssl.client-auth= # Enable SSL support. # 启用SSL支持。 server.ssl.enabled= # Enabled SSL protocols. # 启用SSL协议。 server.ssl.enabled-protocols= # Alias that identifies the key in the key store. # 标识密钥库中密钥的别名。 server.ssl.key-alias= # Password used to access the key in the key store. # 用于访问密钥库中密钥的密码。 server.ssl.key-password= # Path to the key store that holds the SSL certificate (typically a jks file). # 保存SSL证书的密钥库的路径(通常是jks文件)。 server.ssl.key-store= # Password used to access the key store. # 用于访问密钥库的密码。 server.ssl.key-store-password= # Provider for the key store. # 密钥库的提供商。 server.ssl.key-store-provider= # Type of the key store. # 密钥库的类型。 server.ssl.key-store-type= # SSL protocol to use. # 使用SSL的协议。 server.ssl.protocol=TLS # Trust store that holds SSL certificates. # 持有SSL证书的信任存储。 server.ssl.trust-store= # Password used to access the trust store. # 用于访问信任库的密码。 server.ssl.trust-store-password= # Provider for the trust store. # 信托商店的提供商。 server.ssl.trust-store-provider= # Type of the trust store. # 信托商店的类型。 server.ssl.trust-store-type=
# Undertow access log directory. # 取消访问日志目录。 server.undertow.accesslog.dir= # Enable access log. # 启用访问日志。 server.undertow.accesslog.enabled=false # Format pattern for access logs. # 访问日志格式模式。 server.undertow.accesslog.pattern=common # Log file name prefix. # 日志文件名称前缀。 server.undertow.accesslog.prefix=access_log. # Enable access log rotation. # 启用轮询日志。 server.undertow.accesslog.rotate=true # Log file name suffix. # 日志文件名后缀。 server.undertow.accesslog.suffix=log # Size of each buffer in bytes. # 缓存大小。 server.undertow.buffer-size= # Allocate buffers outside the Java heap. # 在Java堆外部分配缓冲区。 server.undertow.direct-buffers= # Number of I/O threads to create for the worker. # 为worker创建的I/O线程数。 server.undertow.io-threads= # Whether servlet filters should be initialized on startup. # 是否应在启动时初始化servlet过滤器。 server.undertow.eager-filter-init=true # Maximum size in bytes of the HTTP post content. # HTTP发布内容的最大大小 server.undertow.max-http-post-size=0 # Number of worker threads. # 工作线程数。 server.undertow.worker-threads=