public interface MyService {
    void doSomething();
}

@Service
public class MyServiceImpl implements MyService {
    @Override
    public void doSomething() {
        System.out.println("hello Im Impl Service");
    }
}

References

https://dimitr.im/spring-interface https://velog.io/@hsw0194/Spring-Boot에서-interface를-사용해야-할까 https://hyunsoori.tistory.com/11