`
- 浏览:
1003024 次
-
Context中嵌套<Environment>元素
环境条目
可以在Context中嵌套<Environment>元素,配置命名的值,这些值作为环境条目资源(Environment Entry Resource),对整个web应用可见。比如,可以按照如下方法创建一个环
境条目:
<Context ...>
...
<Environment name="maxExemptions" value="10"
type="java.lang.Integer" override="false"/>
...
</Context>
这与在/WEB-INF/web.xml中包含如下元素是等价的:
<env-entry>
<env-entry-name>maxExemptions</param-name>
<env-entry-value>10</env-entry-value>
<env-entry-type>java.lang.Integer</env-entry-type>
</env-entry>
区别是,前者不需要修改deployment descriptor来定制这个值。
<Environment>元素的有效属性所如下:
属性 描述
description 环境条目的文字描述(可选)
name 环境条目的名称,相对于java:comp/env context。
override 如果不希望/WEB-INF/web.xml中具有相同名称的<env-entry>覆盖这里指定的值,设为false。缺省值为true。
type 环境条目的Java类名的全称.在/WEB-INF/web.xml中,<env-entry-type>必须是如下的值:java.lang.Boolean, java.lang.Byte, java.lang.Character, java.lang.Double,
java.lang.Float, java.lang.Integer, java.lang.Long, java.lang.Short, or java.lang.String.
value 通过JNDI context请求时,返回给应用的参数值。这个值必须转换成type属性定义的Java类型
分享到:
Global site tag (gtag.js) - Google Analytics
相关推荐
<modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.4.RELEASE</version> <relativePath/> <!-- ...
web.xml 中配置<br>完善了对上传图片的验证<br> <context-param><br> <param-name>FCKAllowedExtensionsImage</param-name><br> <param-value>jpg|gif|jpeg|png|bmp </param-value><br> </context-param><br> ...
<context id="DB2Tables" targetRuntime="MyBatis3"> <commentGenerator> <property name="suppressDate" value="true"/> <!-- 是否去除自动生成的注释 true:是 : false:否 --> <property name=...
aop.jar<br>spring-beans.jar<br>spring-context.jar<br>spring-core.jar<br>spring-dao.jar<br>spring-hibernate.jar<br>spring-jdbc.jar<br>spring-mock.jar<br>spring-orm.jar<br>spring-remoting.jar<br>spring-...
2.6.2.jar<br>xml-apis.jar<br>spring-beans.jar<br>spring-context.jar<br>spring-core.jar<br>commons-attributes-api.jar<br>commons-attributes-compiler.jar<br>commons-logging.jar<br>log4j-1.2.14.jar<br>...
APP管理,可以审核软件和下载软件,使用SSM+mven写入<dependency> <groupId>org.mybatis</groupId> ... <artifactId>spring-context</artifactId> <version>3.2.13.RELEASE</version> </dependency> <dependenc
<artifactId>spring-context</artifactId> <version>4.2.1.RELEASE</version> </dependency> <!-- 添加spring-tx包 --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring...
<br><br>Application sessions <br><br> <br><br>Session information and attributes <br><br> <br><br>Context attributes <br><br> <br><br>Application resources <br><br> <br><br>Application JSP files <br>...
1,01.zip<br>Output<br>显示所有的调试信息(5KB)<END><br>2,02.zip<br>Some general debugging tips<br>一般的调试技巧(11KB)<END><br>3,03.zip<br>Debugging ISAPI extension<br>调试ISAPI扩展(4KB)<END><br>4,04....
06.zip<br>An ICMP Class For MFC<br>用MFC写的ICMP类(9KB)<END><br>84,07.zip<br>Extending the IE Context Menu in your App using the Registry<br>在应用程序中扩展IE的上下文菜单(5KB)<END><br>85,08.zip<br>...
36.zip<br>Writing a window image to a BMP file<br>将一个窗口图象存为一个BMP文件(5KB)<END><br>37,37.zip<br>GL enabled view for MDI environment<br>在MDI环境中使用图形库(5KB)<END><br>38,38.zip<br>Palette...
The 80x86 MOV Instruction<br>4.8 - Some Final Comments on the MOV Instructions<br><br>4.9 Laboratory Exercises<br>4.9.1 The UCR Standard Library for 80x86 Assembly Language Programmers<br>4.9.2 ...
trap, pctx, pmode, ppc, modeaccess)<br><br> Resume()<br> token = Suspend()<br> Unsuspend(token)<br><br>MapMemory() and MapPortal() set CONTEXT and PORTAL mappings for a specific CONTEXT.<br><br>...
ORACLE应用中常见的傻瓜问题1000问<br><br> 14. 如何查看系统被锁的事务时间?<br><br> select * from v$locked_object ;<br><br> 15. 如何以archivelog的方式运行oracle。<br><br> init.ora <br><br> log_...
============================================<br><br>Out of the box, Tomcat 5.5 requires the Java 2 Standard Edition Runtime<br>Environment (JRE) version 5.0 or later. However, you can also run Tomcat...
1、先在pom.xml文件中加入<build></build>标签 <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.3.1</version> ...
MFC Date Routines in an ATL Component.(10KB)<END><br>18,shellext.zip<br>A wizard that allows you to create an ATL Property Page or Context Menu extensions(77KB)<END><br>19,StructStg.zip<br>A wrapper ...
version="2.4"><br> <description>MySQL Connection</description><br> <resource-ref><br> <description>DB Connection</description><br> <res-ref-name>jdbc/mysql</res-ref-name><br> <res-type>javax.sql....
<Context path="/test" docBase="f:\testweb\" debug="5" reloadable="true" crossContext="true"> <Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_Mysql... </Context>
<br>实例26 窗体背景颜色动态变化 <br>实例27 C#属性及应用 <br>实例28 C#属性Metadata的管理与应用 <br>实例29 使用Context属性创建CallThreshold Service <br>实例30 使用应用程序域 <br>实例31 创建C#组件与客户...