瀏覽代碼

加入spring cache

wangliang 5 年之前
父節點
當前提交
eb350fdb7e
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      themis-backend/src/main/java/com/qmth/themis/backend/api/TBOrgController.java

+ 1 - 0
themis-backend/src/main/java/com/qmth/themis/backend/api/TBOrgController.java

@@ -40,6 +40,7 @@ public class TBOrgController {
     private CacheManager cacheManager;
 
     //    @CachePut(value = "org_cache", key = "'orgCacheQuery'")
+//    @Cacheable(value = "org_cache", key = "#p0")
     @ApiOperation(value = "机构查询接口")
     @RequestMapping(value = "/query", method = RequestMethod.GET)
     @ApiResponses({@ApiResponse(code = 200, message = "机构信息", response = TBOrg.class)})