**
轻量级缓存@cache,@cacheclear 使用redis,springaop实现
/**
* Created by towery on 2018/10/10.
*/
@Component
@Aspect
public class CacheAOP {
private static final Logger logger = LoggerFactory.getLogger(CacheAOP.class);
@Autowired
private RedisUtil redisUtil;
// @Pointcut("execution(* *..dao..*Mapper.*HD*(..)) || @annotation(com.towery.project.annotation.Cache)")
// @Pointcut("execution(* *..dao..*Mapper.*HD*(..))")
// @Pointcut("execution(* *..service..*Service.*find*(..))")
//@Pointcut("execution(* com.towery.project.service..*Service.find*(..))")
@Pointcut("@annotation(com.towery.project.annotation.Cache)")
public void pointcut(){}
@Pointcut("@annotation(com.towery.project.annotation.CacheClear)")
public void cacheClear(){}
@Around("pointcut()")
public Object around(ProceedingJoinPoint joinPoint) throws Throwable {
//获取目标方法参数
Object[] args = joinPoint.getArgs();
String applId = "";
StringBuilder builder = new StringBuilder();
if (args != null && args.length > 0) {
builder.append(".");
for(Object arg : args){
if (arg instanceof Map) {