我的项目在eclipse上,没有web.xml文件,我自己加了一个也不管用,请问该怎么更换默认首页,求详细解说
------解决方案--------------------
默认没有web.xml是因为使用了servlet3.0,web。xml不是必须的,比如一般servlet,filter等可以使用注解来配置路径。但是欢迎页面好像真的没法用注解,还是用web.xml
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0">
<welcome-file-list>
<welcome-file>VideoManager</welcome-file>
</welcome-file-list>
</web-app>