zhouhao 8 роки тому
батько
коміт
969b9241da

+ 3 - 1
hsweb-web-controller/src/main/java/org/hsweb/web/controller/monitor/CacheMonitorController.java

@@ -16,6 +16,7 @@
 
 package org.hsweb.web.controller.monitor;
 
+import org.hsweb.web.bean.po.user.User;
 import org.hsweb.web.core.authorize.annotation.Authorize;
 import org.hsweb.web.core.cache.monitor.MonitorCache;
 import org.hsweb.web.core.exception.NotFoundException;
@@ -97,7 +98,8 @@ public class CacheMonitorController {
                                     @PathVariable("cacheName") String cacheName,
                                     @PathVariable("key") String key) {
         Cache.ValueWrapper val = getCache(managerName, cacheName).get(key);
-        if (val != null) return ResponseMessage.ok(val.get());
+        if (val != null) return ResponseMessage.ok(val.get())
+                .exclude(User.class, "password", "modules", "userRoles");
         throw new NotFoundException("值不存在");
     }