|
@@ -16,6 +16,7 @@
|
|
|
|
|
|
package org.hsweb.web.controller.monitor;
|
|
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.authorize.annotation.Authorize;
|
|
import org.hsweb.web.core.cache.monitor.MonitorCache;
|
|
import org.hsweb.web.core.cache.monitor.MonitorCache;
|
|
import org.hsweb.web.core.exception.NotFoundException;
|
|
import org.hsweb.web.core.exception.NotFoundException;
|
|
@@ -97,7 +98,8 @@ public class CacheMonitorController {
|
|
@PathVariable("cacheName") String cacheName,
|
|
@PathVariable("cacheName") String cacheName,
|
|
@PathVariable("key") String key) {
|
|
@PathVariable("key") String key) {
|
|
Cache.ValueWrapper val = getCache(managerName, cacheName).get(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("值不存在");
|
|
throw new NotFoundException("值不存在");
|
|
}
|
|
}
|
|
|
|
|