Questions tagged [contextpath]
Context path refers to the portion of the web request URI that indicates the context of the request. The context path always comes first in a request URI.
contextpath
215
questions
0
votes
0
answers
10
views
How to use context-path in spring cloud gateway to forward requests?
Have microservice1 to microservice10 , Eureka and Gateway service. All the services registered in Eureka dashboard.
Use following property in gateway to forward requests to corresponding microservice.
...
0
votes
0
answers
36
views
Outsourcing .properties file based on context path in Spring Boot application deployed on Tomcat
I want to deploy multiple Spring Boot applications in one Tomcat server, each with different context paths, and I want to outsource the properties of each application. Specifically, I want the ...
1
vote
1
answer
482
views
How to set context path of web application in IntelliJ IDEA [duplicate]
I have a project using Jakarta EE and I'm trying to set a contextual path, but I can't do it. When setting the context path in the web.xml, everything works the same as without it. If you try to get ...
1
vote
0
answers
415
views
How to run the multiple react applications in a single port by Nginx with docker
i want to deploy two apps(admin, interview) on same container, same origin.
and it has own contextpath '/admin', '/interview'.
in case of admin app,on first landing it supposed to redirect '/login' ...
0
votes
2
answers
435
views
Map controllers under a different context than actuator
I would like to map all my controllers under a context path called /network, but my Actuator path under /actuator. I've attempted the following configuration in my application.properties, but the ...
0
votes
0
answers
135
views
JHipster context path with two slashes
Anybody know how a context path can be added with two slashes like /app/idontknow to a JHipster generated application that uses React?
Setting the value for "servlet.context-path" in the ...
1
vote
0
answers
343
views
How to align Spring Boot context path with Apache Camel context path?
I to have a unified context path /api/* for all my RestControllers, as well as all of my Apache Camel Routes that are using rest.
For my understanding, these are the properties that are required to ...
0
votes
1
answer
162
views
String Boot application is not loading when hitting URL with capital letter server.servlet.contextPath value
I am working on a Spring Boot Application.
application.properties
server.servlet.contextPath=myapp
When I am hitting a base URL as below:
http://localhost:8080/myapp, I can see my application is ...
1
vote
0
answers
705
views
Dynamic Context path causes issue when using path variable in spring boot
I am trying to implement dynamic context path I have followed this [blog] (https://www.broadleafcommerce.com/blog/configuring-a-dynamic-context-path-in-spring-boot)
I am able to achieve the required ...
1
vote
1
answer
8k
views
How to have custom context Path for Swagger Url in OpenApi3 Springboot Application
I am migrating from springfox to OpenApi3 in my Springboot project as we have a requirement to upgrade to latest springboot with version 2.7.0
I need to configure custom contextPath for different ...
0
votes
1
answer
5k
views
Open API (Swagger) non working in Spring Boot when adding context path
I have a Spring Boot application exposing REST services that are easily called on addresses like
http://localhost:8080/<controller_mapping>/<service_mapping>.
I've been asked to modify my ...
1
vote
0
answers
125
views
SpringBoot having different root context-path for mvc and static files
If I set the server.servlet.context-path=/something is there a way to avoid the static files (from the /resources/static folder) to be served on /something and only serve the @Controller on /something?...
0
votes
1
answer
196
views
Spring Boot context-path doesn't return index.html in tests
I want to test that GET "/" returns index.html (Which is the case in a build) but when I try that in an integration test I get 404 NOT FOUND. Here's how I test:
mvc.perform(get("/")...
1
vote
2
answers
4k
views
Angular: serving application on custom context-root with npm start on localhost
I have an Angular application which starts on port 4300 with this configuration:
"scripts": {
"ng": "ng",
"start": "ng serve --port 4300 --host 0.0.0.0 ...
0
votes
0
answers
17
views
Running my JSP page on Tomcat in Eclipse. Where is the problem? [duplicate]
I'm trying to run my login.jsp on Tomcat in Eclipse and get a 404 error. I excluded /WEB-INF from the url and got a different result! The browser loaded a line of code in my LoginServlet: Served at: /...