Deploy a WAR as root in WildFly


using maven / manual deploy

Save your war with the name ROOT.war and deploy it, WildFly will configure it as root application.

using configuration files

In your [MAVEN_ROOT]/webapp/WEB-INF create jboss-web.xml and add:


serve index.html

To serve your main page update web.xml:


Fullstack Angular / Java application quick start guide.
WebApp built by Marco using SpringBoot 3.2.4 and Java 21. Hosted in Switzerland (GE8).