hibernate (3) 썸네일형 리스트형 [JPA] native query 에서 @변수 사용 시 오류 jpa native query 에서 @로 변수를 선언해서 사용했을 떼 Space is not allowed after parameter prefix 위와 같은 오류 발생. @rownum\\:=@rownum+1 \\ 역슬래시 적용하면 문제가 해결된다. hibaernate 버전에 따라 역슬래시를 하나만 써도 된다고 함 [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.. [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 다음