I have used Service
interface for ServiceImpl
class in some projects and last week I watched a video where it is said that "there is no need to use interface anymore. Spring Boot provide injection and just create ServiceImpl
class, no need to create Service
interface.
However, I am confused, is that true for Spring Boot project that we just need ServiceImpl
class, and no need to use Service
interface? Any idea?