I would like to expose an endpoint only to certain TEST environment and leave it out altogether in PROD.
I will have a separate @RestController for this endpoint.
My question is how to ensure this endpoint is accessible only from the test env and never in production?
I tried to play around with @ComponentScan, but didn't get very far.