私のWARの構造は次のとおりです。
my-web-app.war/
views/
index.html
blah.html
META-INF/
MANIFEST.MF
WEB-INF/
web.xml
lib/
<!-- Dependencies -->
classes/
org.me.mywebapp.controllers/
MyController.class
<!-- Other packages/classes as well -->
web.xml
WAR がローカルにデプロイされたときに、そのindex.html
ページにアクセスしてアクセスできるように構成したいと思いますhttp://localhost/my-web-app/index.html
。
これが私がこれまでに持っているものです:
<?xml version="1.0" encoding="UTF-8"?>
<web-app
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
<!-- The display name of this web application -->
<display-name>My Web App</display-name>
<listener>
<listener-class>
org.me.mywebapp.context.ContextImpl
</listener-class>
</listener>
</web-app>
この URL を構成してマッピングを表示するにはどうすればよいですか? 前もって感謝します!