【发布时间】:2013-05-01 18:12:39
【问题描述】:
我想为 Google App Engine 配置我的 web.xml,但我的配置不起作用。我想将默认的index.html 更改为WebApp/index.html。
这里是web.xml:
<servlet>
<servlet-name>App</servlet-name>
<servlet-class>bg.app.AppServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>App</servlet-name>
<url-pattern>/WebApp/*</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>WebApp/index.html</welcome-file>
</welcome-file-list>
【问题讨论】:
-
我不知道你的配置不起作用是什么意思,但是
<welcome-file-list>声明需要在<servlet>元素之前。 -
@SotiriosDelimanolis 它没有;)。
标签: java google-app-engine servlets web.xml