spring - Java servlet url path without appname -
I have a project running on the Surlet 3.x, Spring End; Jersey Normally we specify the URL with a pattern in which the app is included, such as:
However, we want the option of specifying the URL without the application, such as: I could help with a web piece collecting this goal, but I do not really know how to implement it. The configuration depends on the servlet container, but the context that you are referring to It is known as the reference path. You can set the contextual path of your web app to an empty string or set it as the root web app. http: // localhost: / appname / testfunction? Parameter = x .
http: // localhost: / testfunction parameter = X .
Comments
Post a Comment