spring boot (2) 썸네일형 리스트형 [Spring Boot] JPA native query to dto throw error nativequery의 결과를 dto에 담으려고 하니 아래와 같은 에러 발생 No converter found capable of converting from type [org.springframework.data.jpa.repository.query.AbstractJpaQuery$TupleConverter$TupleBackedMap] to type https://www.baeldung.com/jpa-queries-custom-result-with-aggregation-functions jpa 쿼리는 보통 맵핑된 엔티티 인스턴스를 결과로 생성하지만,, 네이티브 쿼리를 이용한 결과는 object를 반환한다. 그래서 아래와 같이 Object로 정의해서 엑세스가 가능하지만, key, value 형태의 리턴이 .. [Spring Boot] log4j2, hibernate 설정 gradle 설정 // 기본 로거와 충돌방지위해 exclude 설정 configurations { all { exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging' } } //dependencies 추가 implementation 'org.springframework.boot:spring-boot-starter-log4j2' resources/log4j2.xml 추가 log [%d{yyyy-MM-dd HH:mm:ss}] [%-5p] [%c{1}:%L] - %m%n %d [%t] %-5level %c(%M:%L) - %m%n application.properties 수정 (hibernate 설정) spring.jpa... 이전 1 다음