`
godslhand
  • 浏览: 2831 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论

web项目的welcome-file

阅读更多

  最近维护以前同事留下的代码,发现web.xm中未配置任何servlet和监听,只有一个简单的welcomefile,但是项目在启动时却照样运行了数据库的配置和初始化,一直不解。
   debug时发现原来系统启动完后居然自动加载了welcome-file里的文件,于是新建了一个项目同样的web.xml居然没有加载,对比不同,发现原先的项目是指定Context 的path="",于是修改后debug果然自动加载了,不过仍然不知道具体为什么会这样,同样的welcomefile,就是项目的路径不同而已

 

1
2
分享到:
评论

相关推荐

    Jboss启动报Failed to parse WEB-INFweb.xml; - nested throwable错误

    在本例中,我们需要将错误的标签改为<welcome-file-list>标签,正确的配置如下: ``` <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> ``` 其他可能的解决方案 除了检查web.xml...

    一个在线报名系统

    <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>...

    过滤器的做法

     <filter-name>Encoding</filter-name> ...   <filter-mapping>  <filter-name>Encoding</filter-name> ... <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> </web-app>

    聊天室(ActionScript 3.0实现)

    聊天室(ActionScript 3.0实现)<?xml version="1.0" encoding="UTF-8"?> -<web-app xsi:schemaLocation=...<welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> </web-app>

    最简化velocity的web工程

    <welcome-file-list> <welcome-file>index.vm</welcome-file> <welcome-file>index.jsp</welcome-file> </welcome-file-list> </web-app> 3.index.vm代码 $!isSuccess 4.访问地址 http://IP:端口/vlo/hello ...

    项目源码-java计算机配件报价系统项目

    【项目源码】-java计算机配件报价系统项目 系统主要功能包括: ...后台功能模块:修改个人信息、管理员管理、注册用户管理、类别信息管理、类别信息添加、散件... <welcome-file-list> <welcome-file>/qiantai/default.

    servlet3.0新特性源代码

    <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> </welcome-file-list> </web-app> */ @SuppressWarnings(...

    Spring MVC 框架应用实例

    <welcome-file-list> <welcome-file>index.jsp</welcome-file> <welcome-file>index.html</welcome-file> </welcome-file-list> <jsp-config> <taglib-uri>...

    Tomcat部署项目去除工程名.doc

    其次,需要在 web.xml 文件中添加一个 welcome-file-list 节点,指定项目的欢迎页面。例如:<welcome-file-list><welcome-file>JsGame2.html</welcome-file></welcome-file-list>。这里的 welcome-file-list 节点...

    jsp开发环境的搭建及开发简介借鉴.pdf

    ### JSP开发环境的搭建... </welcome-file-list> ``` 以上步骤详细介绍了如何搭建JSP开发环境以及进行一些基本的配置和测试工作。这些步骤对于初学者来说非常重要,能够帮助他们快速上手并开始开发基于JSP的Web应用。

    xfire 5分钟开发一个完整实例.doc

    <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>...

    Myeclipse整合flex4搭建java的Web项目

    </welcome-file-list> </web-app> ``` 此段配置代码实现了以下功能: 1. **Flex通信session监听器**:通过`<listener>`标签配置了`flex.messaging.HttpFlexSession`类,负责处理Flex应用与服务器端的通信session。 ...

    eclipse-use

    - 检查Web项目配置:确保你的Web应用的`web.xml`文件配置正确,特别是`<welcome-file-list>`元素,它定义了默认的欢迎页面。例如: ```xml <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome...

    Web.xml配置文件.pdf

    3. `<welcome-file-list>`:设置默认首页,当用户访问目录而不是具体文件时,Servlet容器会尝试加载这些文件。例如: ```xml <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index...

    ubuntu 10.04上搭建tomcat服务器全攻略

    <welcome-file-list> <welcome-file>iptv.html</welcome-file> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> </welcome-file-list...

    修改IE地址栏Tomcat小猫咪图标

    - 查找`<welcome-file-list>`部分,确保其中包含`favicon.ico`的引用。 - 如果没有,则添加如下代码: ```xml <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index....

Global site tag (gtag.js) - Google Analytics