Inferred type ‘S’ for type parameter ‘S’ is not within its bound

Obviously, your spring-data-jpa version is 2.x. They renamed findOne() to findById() (and changed its signature a bit).

The findOne() still exists in QueryByExampleExecutor, but it can be used only for queries by example, not for searching by primary key.

So, use this:


CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top