春季JPA的Micronaut异常

时间:2019-02-12 11:19:42

标签: spring-boot spring-data-jpa micronaut

如果我在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:没有存储库,一切正常

0 个答案:

没有答案
相关问题