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:

http: // localhost: / appname / testfunction? Parameter = x .

However, we want the option of specifying the URL without the application, such as:

http: // localhost: / testfunction parameter = X .

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.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -