Question from the Spring test

Archived

The following code

public class interface AddressResolver{...}


@Component
public class GoogleMapAddressResolver implements AddressResolver{
  //...
}
 
@Component
public class CustomMapAddressResolver implements AddressResolver{
   //...
}
 
@Service
public class AddressService{
      
    @Autowired
    private AddressResolver addressResolver;
  //...
}
Author: W3D TeamStatus: Archived(New question!)Question passed 968 times
-1
Community Evaluations
developer avatar
Auteur anonyme
12/06/2022
class interface => erreur compilation
developer avatar
Auteur anonyme
13/06/2022
Merci pour le retour !