vfilter

Downward compatible API version filter

License

License

GroupId

GroupId

com.aeert
ArtifactId

ArtifactId

vfilter
Last Version

Last Version

2.0.0.RELEASE
Release Date

Release Date

Type

Type

jar
Description

Description

vfilter
Downward compatible API version filter
Project URL

Project URL

https://github.com/mayunkun/vfilter
Source Code Management

Source Code Management

https://github.com/mayunkun/mlock

Download vfilter

How to add to project

<!-- https://jarcasting.com/artifacts/com.aeert/vfilter/ -->
<dependency>
    <groupId>com.aeert</groupId>
    <artifactId>vfilter</artifactId>
    <version>2.0.0.RELEASE</version>
</dependency>
// https://jarcasting.com/artifacts/com.aeert/vfilter/
implementation 'com.aeert:vfilter:2.0.0.RELEASE'
// https://jarcasting.com/artifacts/com.aeert/vfilter/
implementation ("com.aeert:vfilter:2.0.0.RELEASE")
'com.aeert:vfilter:jar:2.0.0.RELEASE'
<dependency org="com.aeert" name="vfilter" rev="2.0.0.RELEASE">
  <artifact name="vfilter" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.aeert', module='vfilter', version='2.0.0.RELEASE')
)
libraryDependencies += "com.aeert" % "vfilter" % "2.0.0.RELEASE"
[com.aeert/vfilter "2.0.0.RELEASE"]

Dependencies

provided (4)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter Optional jar 2.4.1
org.springframework.boot : spring-boot-configuration-processor Optional jar 2.4.1
javax.servlet : javax.servlet-api Optional jar 4.0.1
org.springframework : spring-webmvc Optional jar 5.3.1

Project Modules

There are no modules declared in this project.

mlock

方法级基于注释的分布式方法锁

Annotation based distributed method lock at method level

项目已经上传中央仓库,您可以通过pom引入如下代码

The project has been uploaded to the central warehouse. You can import the following code through POM

<dependency>
  <groupId>com.aeert</groupId>
  <artifactId>mlock</artifactId>
  <version>2.3.0.RELEASE</version>
</dependency>

启动类加上组件的路径(com.aeert)扫描即可,路径(com.aeert)需要放在最后面

The path of the startup class plus the component( com.aeert )Scan, path( com.aeert )It needs to be at the back

@SpringBootApplication(scanBasePackages = {"com.example.vfilterdemo", "com.aeert"})
public class VfilterDemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(VfilterDemoApplication.class, args);
    }

}

通过一行注解即可使用,用法类似Spring cache

It can be used through one line of annotation, similar to spring cache

    @Override
    @MLock(key = "targetClass + methodName + ':' + #p0 + #p1 + #p2", expires = 20000L, registryKey = "redis-key",message = "当前操作正在执行!", automatic = true)
    public String getInfo(String param1, String param2, String param3) {
        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return param1 + param2 + param3;
    }

Versions

Version
2.0.0.RELEASE
2.0.0
1.0.0.RELEASE
1.0.0