All Downloads are FREE. Search and download functionalities are using the official Maven repository.

love.keeping.starter.web.annotations.locker.EnableLock Maven / Gradle / Ivy

package love.keeping.starter.web.annotations.locker;

import love.keeping.starter.web.config.LockAutoConfiguration;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.springframework.context.annotation.Import;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Import(LockAutoConfiguration.class)
@Documented
public @interface EnableLock {

    /**
     * 类型:redis、default
     * 

* redis:基于Redis的分布式锁 *

* default:基于JUC的java锁 * * @return */ LockType type() default LockType.DEFAULT; }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy