I'm having trouble with the following scenario:
I have two projects, where one is the resource project and the other project is the authentication server, both projects were built with spring boot.
The project with the application server is working normally with spring-security Oauth2, here I have nothing to complain about. In the client project I have a problem, when I run the application through spring boot, there is no error, but when I pass the two applications to tomcat (external server), the client project creates a request request to the server
I also performed a test to verify that only the client project is raised by the spring boot (tomcat built-in), it does not create this request and exits the project normally.
The property that creates the request stays in the application.properties and is in the following way:
security.oauth2.resource.jwt.keyUri=http://localhost:8080/partner-interface-oauth2/oauth/token
Thanks for your attention and help!