I have a spring boot application inside which it contains a jar of another spring boot app , I am using classes from jar. Added this jar as a dependency in my pom.xml . The