67,513
社区成员
发帖
与我相关
我的任务
分享
@Cacheable(value = "${ehcache_name}", condition = "#result != null")
public T get(PK id) {
return this.getDao().get(id);
}
@Cacheable(value = "${ehcache_name}", key = "#this.getClass().getSimpleName() + #id", condition = "#result != null")
public T get(PK id) {
T result = this.getDao().get(id);
return result;
}
@Cacheable(value = "${ehcache_name}", key = "#p0,#p1")
private T get(Class<T> clazz, PK id) {
System.out.println(clazz.getName() + " - " + id);
return this.getDao().get(id);
}
public T get(PK id) {
return this.get(this.getDao().getEntityClass(), id);
}
为毛这个也 不行???!!!