No converter found capable of converting from type java.lang.String to type @org.springframework.data.repository.query.Param
问题 I'm building a MongoDb rest application with spring boot 1.1.5. I have created a repository: @RepositoryRestResource(collectionResourceRel = "SourceProductV1Repository", path = "SourceProductV1Repository") public interface SourceProductV1Repository extends MongoRepository<SourceProductV1Model, String> { public List<SourceProductV1Model> findByUser (@Param("user") MongoUser user); } I Defined a converter to convert String to MongoUser (the converter is correctly registered in the spring