@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface AutoTrans
| 限定符和类型 | 可选元素和说明 |
|---|---|
long |
cacheSeconds
globalCache 为true有效
缓存时间 到秒
|
java.lang.String |
defaultAlias
默认的别名
|
boolean |
globalCache
全局缓存
|
boolean |
isAccess
globalCache 为true有效
true 代表按照访问时间过期
false 按照插入时间过期
|
int |
maxCache
globalCache 为true有效
最大缓存多少个
|
java.lang.Class<? extends VO> |
ref
关联的类 jpa dao/mbatis plus的时候mapper专用参数
|
boolean |
useCache
已过时。
|
boolean |
useRedis
已过时。
|
@Deprecated public abstract boolean useCache
public abstract java.lang.Class<? extends VO> ref
Copyright © 2024. All Rights Reserved.