You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For queries with named parameters you need to use provide names for method parameters.
Use @Param for query method parameters, or when on Java 8+ use the javac flag -parameters
원인
@Query(value = "select v from VillageArea v where ST_Contains(v.villagePolygon, :point)")
Optional<VillageArea> findVillageByLocationPoint(Point point);
해결
파라미터에 스프링 데이터가 제공하는 @param("point") Point point 을 추가
@Query(value = "select v from VillageArea v where ST_Contains(v.villagePolygon, :point)")
Optional<VillageArea> findVillageByLocationPoint(@Param("point") Point point);
상황
원인
해결
참고
The text was updated successfully, but these errors were encountered: