캐쉬 썸네일형 리스트형 [Spring Framework] Ehcache 사용하기 1. 라이브러리 세팅~! org.springframework spring-context-support ${org.springframework-version} com.googlecode.ehcache-spring-annotationsehcache-spring-annotations1.1.3net.sf.ehcacheehcache2.7.4 2. 설정파일 작성 3. 캐쉬설정파일 작성 (ehcache.xml 파일이며 스프링 프로젝트에서 resource에 위치함) 4. 캐쉬 사용하기 cacheable 애노테이션과 캐쉬설정파일에서 작성한 testCache1 를사용한다. @Cacheable(cacheName="testCache1")@Override public List getMonthMenu (final int year.. 더보기 이전 1 다음