[Spring Boot] ERROR: IllegalArgumentException

Spring Boot

Language :

Error Message

Request processing failed; nested exception is org.springframework.dao.InvalidDataAccessApiUsageException: No sources given; nested exception is java.lang.IllegalArgumentException: No sources given

원인

from 누락

fun findList(request: UserRequest): List<User> {
    return select(User::class.java, user.id)
        .fetch()
}

조치

fun findList(request: UserRequest): List<User> {
    return select(User::class.java, user.id)
        .from(user)
        .fetch()
}

민갤

Back-End Developer

백엔드 개발자입니다.