首页>代码>spring boot集成ehcache极简入门实例>/springboot-ehcache/src/main/java/com/simon/springbootehcache/generator/CacheKeyGenerator.java
                
                package com.simon.springbootehcache.generator;
import org.springframework.cache.interceptor.KeyGenerator;
import org.springframework.stereotype.Component;
import java.lang.reflect.Method;
import java.util.Arrays;
/**
 * @author simon
 */
@Component
public class CacheKeyGenerator implements KeyGenerator {
    @Override
    public Object generate(Object target, Method method, Object... params) {
        return method.getName()+ Arrays.toString(params);
    }
}
 最近浏览更多
最近浏览更多
                
                微信网友_6658091507814400     LV3
                2023年9月20日
            
            
        
                微信网友_6658063909801984    
                2023年9月20日
            
            
                    暂无贡献等级
            
        
                茶茶茶百道qq    
                2023年9月20日
            
            
                    暂无贡献等级
            
        
                xuweiwowzy     LV5
                2023年8月10日
            
            
        
                xiaomujiang    
                2023年8月10日
            
            
                    暂无贡献等级
            
        
                damowang0022    
                2023年8月9日
            
            
                    暂无贡献等级
            
        
                飞呀飞呀飞不放     LV7
                2023年8月8日
            
            
        
                yyh1252     LV8
                2023年8月7日
            
            
        
                crosa_Don     LV18
                2023年8月4日
            
            
        
                444105047     LV6
                2023年8月2日
            
            
        
 最近下载
最近下载 
                 
                 
                 
                