码迷,mamicode.com
首页 > 编程语言 > 详细

javaWeb web.xml 配置

时间:2017-06-27 09:55:02      阅读:129      评论:0      收藏:0      [点我收藏+]

标签:host   div   xsd   javascrip   print   dcl   class   alt   local   

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">
  <servlet>
    <servlet-name>HelloServlet</servlet-name>
    <servlet-class>com.popoaichuiniu.jacy.HelloServlet</servlet-class>
    <init-param>
      <param-name>debug</param-name>
      <param-value>0</param-value>
    </init-param>
    <init-param>
      <param-name>listings</param-name>
      <param-value>false</param-value>
    </init-param>
  </servlet>
  <servlet-mapping>
    <servlet-name>HelloServlet</servlet-name>
    <url-pattern>/HelloServlet</url-pattern>
  </servlet-mapping>
</web-app>

技术分享
訪问的网址:http://localhost:8080/HelloServletWeb/HelloServlet

javaWeb web.xml 配置

标签:host   div   xsd   javascrip   print   dcl   class   alt   local   

原文地址:http://www.cnblogs.com/yutingliuyl/p/7083234.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!