일요일, 5월 26, 2024
HomeLanguageSpring 3.1 + EHCache

Spring 3.1 + EHCache

Spring 3.1 + EHCache

관련 jar

1. aopalliance-1.0.jar
2. commons-codec-1.6.jar
3. ehcache-core-2.4.5.jar
4. ehcache-spring-annotations-1.2.0.jar
5. guava-r09.jar
6. slf4j-api-1.6.6.jar
7. slf4j-jdk14-1.6.6.jar

ehcache.xml

  

     

  

    
    

    
    

    
    

    
    

servlet.xml




    
        
    

class.java

@Cacheable(cacheName="topMenuCache")
public List srchGrpMenuList(Model param) throws Exception {
	try {
		return sqlMapClient.queryForList("Query.selectList", param);
	} catch ( Exception e) {
		throw new Exception(e);
	}
}

INPUT 객체가 사용자정의 Model 일경우 hashCode() , equals() 구현할것

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Time limit exceeded. Please complete the captcha once again.

Most Popular