首页 > TAG信息列表 > checkWarehouse

SpringCache的key拼接

https://www.nhooo.com/note/qah5c5.html @Cacheable(value = "page_user",key ="T(String).valueOf(#page).concat('-').concat(#pageSize)",unless = "#result=null")//由于page是int型,concat要求变量必须为String,所以强转一下 @Override public