SyntaxFix
Write A Post
Hire A Developer
Questions
We can set it in the application.properties as API_CONTEXT_ROOT=/therootpath
application.properties
API_CONTEXT_ROOT=/therootpath
And we access it in the Java class as mentioned below
@Value("${API_CONTEXT_ROOT}") private String contextRoot;