.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" id="WebApp_ID" version="3.1">
<display-name>javaWeb_dayziji</display-name>
<!-- 全局访问 ,为name赋值,可以在 整个工程下使用config访问-->
<context-param>
<param-name>name</param-name>
<param-value>jjjjj</param-value>
</context-param>
<servlet>
<servlet-name>demo</servlet-name>
<servlet-class>cn.tedu.servlet.DemoServlet</servlet-class>
<!-- 类下的访问 ,为fileName赋值,只能在demo类下使用config访问-->
<init-param>
<param-name>fileName</param-name>
<param-value>dbcp.xml</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>demo</servlet-name>
<url-pattern>/demo</url-pattern>
</servlet-mapping>
<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>

 

posted @ 2020-08-27 14:33  来咯相信我  阅读(120)  评论(0编辑  收藏  举报