How to set prefix path for webapp and rest?

I’m migrating from packaged distribution to Spring Boot. The WildFly version of Camunda serves all the content with /camunda prefix. I would like to retain that in Spring Boot so that old links are not broken. I tried setting server.servlet-path=/camunda/ in application.properties, but couldn’t make it work.

What is the correct way?

I was using wrong configuration parameter. The correct one is server.context-path=/camunda/ in application.properties