我要定义一个不扩展JpaRepository或CrudRepository的存储库,如下所示:
@Repository
public interface MyService {
void method1();
}
现在正在运行应用,出现以下错误:
Field MyService in com.rasadco.Application required a bean of type 'com.rasadco.MyService' that could not be found.
如何在Spring Boot 1.5.13中定义服务(或存储库)?