Medium
The following code
public interface AddressResolver{...}
@Component
public class GoogleMapAddressResolver implements AddressResolver{
//...
}
@Component
public class CustomMapAddressResolver implements AddressResolver{
//...
}
@Service
public class AddressService{
@Autowired
private AddressResolver addressResolver;
//...
}
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!
Similar QuestionsMore questions about Spring