《Oracle Java EE编程指南》03-02:Deployment Descriptor

IT/互联网岗位招聘计划-AT阿宝哥


深入了解IT/互联网行业及岗位,请参阅通用IT/互联网岗位招聘计划(最新全岗版)
深入了解职业晋升及学习路线,请参阅最优职业晋升路线和课程学习指南(最新全栈版)


  1. 直接运行项目
    图片.png

2.生成部署描述符

图片.png

  1. 自动装载

图片.png


四月 03, 2020 5:49:39 下午 org.apache.catalina.startup.HostConfig reload
信息: Reloading context [/JavaEE01HelloWorld]
四月 03, 2020 5:49:39 下午 org.apache.catalina.core.StandardContext reload
信息: Reloading Context with name [/JavaEE01HelloWorld] has started
四月 03, 2020 5:49:43 下午 org.apache.jasper.servlet.TldScanner scanJars
信息: 至少有一个JAR被扫描用于TLD但尚未包含TLD。 为此记录器启用调试日志记录,以获取已扫描但未在其中找到TLD的完整JAR列表。 在扫描期间跳过不需要的JAR可以缩短启动时间和JSP编译时间。
四月 03, 2020 5:49:43 下午 org.apache.catalina.core.StandardContext reload
信息: Reloading Context with name [/JavaEE01HelloWorld] is completed

  1. 打开web.xml文件

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
	xmlns="http://xmlns.jcp.org/xml/ns/javaee" 
	xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" 
	version="3.1">
  <display-name>JavaEE01HelloWorld</display-name>
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>default.jsp</welcome-file>
  </welcome-file-list>
</web-app>

  1. 新建欢迎文件重新启动项目
发布了198 篇原创文章 · 获赞 1009 · 访问量 6万+

猜你喜欢

转载自blog.csdn.net/goldentec/article/details/105298190