'server.servlet.context-path is not working over AWS enviroment

I have just host my springboot application (WAR) over AWS elastic beanstack, but found one strange issue

server.servlet.context-path= /app-name/api/v0

This is working on localhost perfectly fine but after deploying over aws its not working, however all APIs are working without context path from AWS as well:

Example :

http://awsaddress.com/login  -> its working, but it should like 

 http://awsaddress.com/app-name/api/v0/login  -> its not working

enter image description here



Solution 1:[1]

I know this thread is quite old, but i was facing the same problem. In my case the solution was to add following lines in application.properties:

server.contextPath = /artifactId
server.servlet.contextPath = /artifactId

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 algorismi