If I run my project with Tomcat a valid REST call would look like this:
http://localhost:8080/rest-api/dl4j/we/getModelInfo?modelName=123
However, if I start it from within a Java main method with @SpringBootApplication
I have to call
http://localhost:8080/api/dl4j/we/getModelInfo?modelName=123
How can I ensure that this path stays the same for all REST controller?
This is how I run the server programmatically:
public static void main(String[] args) {
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
LOGGER.info("EasyModelAccessServer Server is shutting down.");}
));
SpringApplication.run(EasyModelAccessServer.class, args);
}