java – to set values ​​from the yml configuration

I have class:

@WebServiceClient(name = "${}", targetNamespace = "${service.namespace}", wsdlLocation = "${service.wsdlLocation}")
public class ExampleService extends Service {
    private static String wsdlLocation;

It's part of the MVN project that I compile and use from my local Maven repo as a dependency on my other Spring Boot app, which has the yml configuration:

  name: name
  namespace: namespace
  wsdlLocation: wsdlLocation

Is there a way that this ExampleService class uses the configuration of the parent project?