Is it safe to use Spring DI + interface default method approach, instead of classic Spring DI + interface + class?
@Service
public interface MessagesService {
default public void send() {
}
}
OR
public interface MessagesService {
void send();
}
@Service
public class MessagesServiceImpl implements MessagesService {
@Override
public void send() {
}
}