WildFly31のjboss-web.xmlについて。
jboss-web.xmlでWildFlyの設定を記述する。
warファイル作成時にjboss-web.xmlを含めるようにするには、src/main/webapp/WEB-INFというディレクトリーを作り、そこにjboss-web.xmlを置く。
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
<context-root>example</context-root>
</jboss-web>
WildFlyではjboss-web.xmlでコンテキストルートを指定する。
<jboss-web>
<context-root>example</context-root>
</jboss-web>
コンテキストルートをexampleにした場合、http://localhost:8080/exampleでウェブアプリケーションにアクセスする。