java – to set values ​​from the yml configuration

I have class:

@WebServiceClient(name = "${service.name}", targetNamespace = "${service.namespace}", wsdlLocation = "${service.wsdlLocation}")
public class ExampleService extends Service {
    @Value("${service.wsdlLocation}")
    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:

service:
  name: name
  namespace: namespace
  wsdlLocation: wsdlLocation

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