如果我在JpaRepository
的一个项目上参加春季小事:
@Repository
public interface GreetingRepository extends JpaRepository<Greeting, Long> {
}
我遇到一个错误:
Message: No bean of type [greeting.example.GreetingRepository] exists. Ensure the class is declared a bean and if you are using Java or Kotlin make sure you have enabled annotation processing.
我还需要什么配置?
NB:没有存储库,一切正常