분류 전체보기 (126) 썸네일형 리스트형 [JPA] native query 에서 @변수 사용 시 오류 jpa native query 에서 @로 변수를 선언해서 사용했을 떼 Space is not allowed after parameter prefix 위와 같은 오류 발생. @rownum\\:=@rownum+1 \\ 역슬래시 적용하면 문제가 해결된다. hibaernate 버전에 따라 역슬래시를 하나만 써도 된다고 함 아후강 코바늘, 핸드폰 가방 재료: 트위드 에코(먹색, 회색), 아후강 코바늘 4미리, 돗바늘 무늬없는 플레인 실로 사용하는 것이 더 좋을 듯 하다. 바디: 디어 크로쉐 동영상 참고 끈: 새우뜨기 + 짧은뜨기 실물은 이쁜데 사진이 안이쁘다는 점. [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] JPA hibernate second level cache with redisson 이미 조회된 DB데이터의 접근 비용을 줄이기 위해 데이터를 캐시하여 retrieve 한다. https://redisson.org/glossary/hibernate-second-level-cache.html What is the Hibernate second-level cache? | Redisson Part of Hibernate’s efficiency comes from the use of a component called the “second-level cache” or “L2 cache.” So what is the Hibernate second-level cache, and how should you use it? redisson.org level2 cache는 큰사이즈의 데이터를 저장하지만 le.. G마켓 사업자 판매회원 가입 오류 G마켓 판매회원 가입 시 위와 같은 오류가 뜨며 사업자 판매회원 가입 진행이 되지 않는다. nice 평가정보 고객센터에 전화해보니 사업자 등록증을 팩스나 이메일로 보낸 후 30분~1시간 정도 뒤에 다시 시도해보라고 한다. 이메일로 사업자 등록증 전송 후.. 정상적으로 가입절차가 진행된다. [Spring Boot] Jwt gradle 설정 implementation 'io.jsonwebtoken:jjwt-api:0.11.5' implementation 'io.jsonwebtoken:jjwt-impl:0.11.5' implementation 'io.jsonwebtoken:jjwt-jackson:0.11.5' JwtTokenProvider 생성 import java.security.Key; import java.util.Base64; import java.util.Date; import org.springframework.beans.factory.InitializingBean; import org.springframework.beans.factory.annotation.Value; import org.springframewo.. [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... [Spring Boot]JPA @query null Parameter https://www.baeldung.com/spring-data-jpa-null-parameters Spring Data JPA and Null Parameters | Baeldung Learn different ways to use null parameters with Spring Data JPA queries, including how to make query parameters optional. www.baeldung.com jpa @query 사용 도중 null 인 경우에 조회하지 않도록 조건을 주어야 할 때 @Query("SELECT c FROM Customer c WHERE (:name is null or c.name = :name) and (:email is null" + " or c.em.. 이전 1 ··· 10 11 12 13 14 15 16 다음