feat: 增加ttl 使用实例

This commit is contained in:
wyl
2022-08-07 22:34:57 +08:00
parent 35dbe9f827
commit ead450d04e
9 changed files with 235 additions and 7 deletions
+1
View File
@@ -13,6 +13,7 @@
<module>spring-boot-xxjob</module>
<module>spring-boot-common</module>
<module>spring-boot-rabbitmq</module>
<module>spring-boot-mybatis</module>
</modules>
<artifactId>spring-boot</artifactId>
-4
View File
@@ -21,10 +21,6 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.springframework.boot</groupId>-->
<!-- <artifactId>spring-boot-starter-web</artifactId>-->
<!-- </dependency>-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
@@ -1,18 +1,15 @@
package com.wyl.spring.boot.common.spel;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.wyl.spring.boot.common.spel.annotation.SpelTest;
import com.wyl.spring.boot.common.spel.service.EvaluationContext;
import com.wyl.spring.boot.common.spel.service.Evaluator;
import com.wyl.spring.boot.common.spel.service.RootObject;
import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.Signature;
import org.aspectj.lang.annotation.*;
import org.aspectj.lang.reflect.MethodSignature;
import org.springframework.aop.framework.AopProxyUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.lang.reflect.Method;