I'm working on a web application that uses spring boot, JavaScript and REST API to interact with the database. I have a jar file where I configured several environment variables that store urls and parts of urls. In Spring Boot controller I used the following line to grab an environment variable:
@Resource
private Environment environment;
String prefix = environment.getProperty("rest.resource.name");
Is there something equivalent I could use with JavaScript to perform this operation?