EAR文件--application.xml 解析
2 <application id="Application_ID" version="1.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
3 <display-name>LearnEAR</display-name>
4 <module id="WebModule_1281616343151">
5 <web>
6 <web-uri>Learn.war</web-uri>
7 <context-root>.Learn</context-root>
8 </web>
9 </module>
10 </application>
这是我的application.xml文件,"This is the global application configuration file",下面是在网上看到的一些信息:
"Notice that Web modules allow you to specify one other value—the<context-root>. Recall from the previous chapter that the context root is your web site’s URL. If you deploy a simple WAR file, the name of the WAR will be used as the URL. When your WAR file is deployed inside an EAR, this element allows you to override the physical name of the WAR and use whatever URL you’d like."
继续实践。。
<module>:
There are as many module elements as there are separate J2EE modules, and each of them contains EJB, Java, and Web elements.
<web> :
The Web element shows the web-uri and the context-root of a Web application module.
The <web-uri> element indicates the URI of a Web application file. (A URI is an Internet protocol element consisting of a name or address you can use to refer to a resource. A URL is just an URI that additionally provides a way of accessing and obtaining a representation of the resource.) The URI is relative to the top level of the application package.
一个URI就是一个由因特网协议中的一些元素组成的 名字或者地址, 我们可以通过这些名字或者地址来refer(关联?提到?指定 ?)到资源。
一个URL就是在URL的基础上增加了一种获取资源的representation的方法
给俩个链接:
Building and Deploying an EAR :http://www.devarticles.com/c/a/Web-Authoring/Building-and-Deploying-an-EAR/1/
Configuring J2EE Application XML Files :http://www.devshed.com/c/a/Oracle/Configuring-J2EE-Application-XML-Files/1/
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 单线程的Redis速度为什么快?
· 展开说说关于C#中ORM框架的用法!
· SQL Server 2025 AI相关能力初探
· Pantheons:用 TypeScript 打造主流大模型对话的一站式集成库