Spring Boot 启动出现"no property find found for type"

Spring Boot 使用Repository 实现增删改查

出现no property find found for type

原因一:引入两个类似depencies

org.springframework.dataspring-data-mongodb

org.springframework.dataspring-data-jpa

解决:需要删除spring-data-jpa,导致的冲突问题

原因二:*Repository中命名不规范

public interface *Repository extends MongoRepository<*, Long> {

//方法:满足包含要求

}

删除方法后,运行正常。

你可能感兴趣的:(Spring Boot 启动出现"no property find found for type")