Integrating rest api and cockpit in spring mvc

hi all. I’m new to Camunda and i was wondering if i can integrate Camunda rest Api and Cockpit in my spring MVC program. I already integrated Camunda-engine and it looks it’s working fine. right now rest Api that worked in spring boot program doesn’t work in spring MVC program. and i have added below dependencies in my spring MVC program. I also have to mention that we are using embedded jetty server in our program. thanks in advance.

<dependency>
            <groupId>org.camunda.bpm</groupId>
            <artifactId>camunda-engine</artifactId>
        </dependency>
        <dependency>
            <groupId>org.camunda.bpm</groupId>
            <artifactId>camunda-engine-spring</artifactId>
        </dependency>