Spring boot application

I have created a spring boot application , which works fine with Okta saml2 authentication. However when I package into a normal spring application war file , and deploy in a running tomcat server , I am not able to reach okta and it failing at the discovery .

GET /saml/discovery?entityID=https%3A%2F%2Flocalhost%3A8443%2Fsaml%2Fmetadata&returnIDParam=idp HTTP/1.1" 404 1092

Is the context path different when you are running in as a war vs in development (i’m guessing via mvn spring-boot:run) ?