Apache Tomcat Configuration Reference

来源:互联网 发布:nginx和tomcat区别 编辑:程序博客网 时间:2024/05/22 20:21

原文地址:点击打开链接


Apache Tomcat Configuration Reference


All implementations of Context support the following attributes:

cookies:Set to true if you want cookies to be used for session identifier communication if supported by the client (this is the default). Set to false if you want to disable the use of cookies for session identifier communication, and rely only on URL rewriting by the application.

    在client端支持的情况下,如果你想将cookie作为session的连接验证,设置为true。如果你不想将cookie作为session的连接验证,设置为false,并且只能通过应用程序来重写URL。

wrapperClass:Java class name of the org.apache.catalina.Wrapper implementation class that will be used for servlets managed by this Context. If not specified, a standard default value will be used.

    名为org.apache.catalina.Wrapper的Java实现类将被Context用于servlets的管理,如果不指定,一个标准的默认值将被使用。

override:Set to true to have explicit settings in this Context element override any corresponding settings in either the global or Host default contexts. By default, settings from a default context will be used.

    设置为true会明确指定Context中的元素会重写在全局或者Host的默认context中的设置。默认使用context中的默认设置。

reloadable:Set to true if you want Catalina to monitor classes in /WEB-INF/classes/ and /WEB-INF/lib for changes, and automatically reload the web application if a change is detected. This feature is very useful during application development, but it requires significant runtime overhead and is not recommended for use on deployed production applications. That's why the default setting for this attribute is false. You can use the Manager web application, however, to trigger reloads of deployed applications on demand.

    如果你想让Catalina监视/WEB-INF/classes/和/WEB-INF/lib中类的变化,设置为true,如果检测到变化,它会自动加载web程序。这个特性在应用程序开发时非常有用,但是它在运行时需要较大的开销,所以不建议在部署应用程序时使用。这就是为什么默认设置为false。但是,你可以按照部署应用程序时的要求使用Manager web application来出发reload属性。



0 0