2018/01 썸네일형 리스트형 Spring Hibernate 2차 캐시 설정 Spring 에서 JPA 2차 캐시를 사용하면 "spring.jpa.properties.javax.persistence.sharedCache.mode" 속성을 이용해 캐싱 entity의 범위를 지정할 수 있다. (Default : ENABLE_SELECTIVE) ValueDescriptionALLAll entities are cachedNONEDisable cachingENABLE_SELECTIVEEnable caching only for those entities which has @Cacheable(true)DISABLE_SELECTIVEEnable caching only for those entities which are not specified with @Cacheable(false)UNSPECI.. 더보기 이전 1 다음