소스 검색

加入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)})