The context root or URI is a simple way to keep a friendly name for our applications when calls are made via the browser. When WildFly does a deployment, it checks if this setting is enabled in the application and then interprets the configuration, registering the application with the context root configured. It is very useful when you have a versioned application. In order to keep the version in the filename for easier understanding and standardization, the application gets a very long name. For example, if an application had the name intranet-0.0.1-Final
and did not have the context root configured, the application should be called using the entire file name; however, we want the application be called only with a much simpler context root (for example, /intranet/).
Now we will see how to configure the context root of the application.
To perform this configuration it is necessary to create a new file within the application's WEB-INF
folder; this is the...