I make a request to add the entire table to the List
public interface CourseRepository extends JpaRepository<CustomCourse, Long> { @Query("SELECT * FROM CustomCourse") CustomCourse findAllCourses(); } org.springframework.beans.factory.BeanCreationException: Error creating bean
Swears at the method, since it is without parameters, but I have no idea what to indicate there, because I am taking the entire table and not sampling for some field.
JpaRepositoryalready has afindAllmethod, use it, besides the method should beList<CustomCourse> findAllCourses();- MrFylypenko