You can injection both implementation and choose which one you need by parameter {spring.profiles.active}, such like this code :
@autowired
private Car Toyota;
@autowired
private Car Bmv;
public Car getCar(){
if(spring.profiles.active is local){
return Toyota;
}else{
return bmv;
}
}